alistair23-linux/drivers/staging/greybus
Johan Hovold 1ffc12be55 greybus: loopback: fix 64-bit divisions
The code uses 64-bit divisions, which should be avoided, and also
prevents the module from loading on 32-bit systems:

	gb_loopback: Unknown symbol __aeabi_uldivmod (err 0)

Fix by using the kernel's 64-bit by 32-bit division implementation
do_div.

Compile tested only. I did not look very closely at the code itself.
Perhaps this could be worked around in some other way, but this silences
the linker warning and allows the module to be loaded.

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2015-04-16 10:26:33 +02:00
..
Documentation greybus: Documentation/sysfs-bus-greybus: document module sysfs files 2015-04-09 22:50:10 +02:00
.gitignore greybus: gitignore: few more additions 2014-11-14 13:14:37 -08:00
Android.mk greybus: build: android: Fix script which locates .ko files and moves them into ramdisk 2015-01-27 14:49:04 -08:00
ap.c greybus: bundle: Initialize all bundles on link-up 2015-04-06 11:34:39 +02:00
battery.c greybus: remove unused version-response structs 2015-01-22 11:29:39 +08:00
bundle.c greybus: bundle: s/class_type/class 2015-04-06 12:47:06 +02:00
bundle.h greybus: bundle: s/class_type/class 2015-04-06 12:47:06 +02:00
connection.c greybus: Unregister devices to get them freed 2015-04-05 16:23:22 +02:00
connection.h greybus: connection: replace custom error function with dev_err 2015-03-19 17:28:19 +01:00
core.c greybus: endo: hook up endos into the device tree 2015-04-09 22:50:09 +02:00
debugfs.c greybus: debugfs: we shouldn't care if debugfs is working or not 2015-03-30 15:01:56 +02:00
devices greybus: devices: endpoint description of device 2014-09-13 17:31:27 -07:00
endo.c greybus: endo: hook up endos into the device tree 2015-04-09 22:50:09 +02:00
endo.h greybus: endo: add endo structures and logic 2015-04-09 22:50:09 +02:00
es1.c greybus: drop host-driver buffer headroom 2015-04-07 17:31:05 +02:00
es2.c greybus: drop host-driver buffer headroom 2015-04-07 17:31:05 +02:00
gpb.c greybus: Greybus: Place module_init/exit() right after respective routines 2015-03-24 21:00:24 +01:00
gpbridge.h greybus: gpbridge.h: remove BIT() define 2015-04-10 11:20:35 +02:00
gpio.c greybus: Move briged phy structure definitions into gpbridge.h 2015-04-10 11:17:20 +02:00
greybus.h greybus: endo: hook up endos into the device tree 2015-04-09 22:50:09 +02:00
greybus_id.h greybus: bundle: s/class_type/class 2015-04-06 12:47:06 +02:00
greybus_manifest.h greybus: bundle: s/class_type/class 2015-04-06 12:47:06 +02:00
hid.c greybus: hid: Use payload-size to get report size 2015-04-06 10:53:41 +02:00
i2c.c greybus: Move briged phy structure definitions into gpbridge.h 2015-04-10 11:17:20 +02:00
interface.c greybus: endo: hook up endos into the device tree 2015-04-09 22:50:09 +02:00
interface.h greybus: driver corresponds to a bundle, not interface 2015-04-06 12:07:30 +02:00
kernel_ver.h greybus: kernel_ver.h: add sysfs_create_groups() and sysfs_remove_groups() 2015-04-01 01:36:23 +02:00
LICENSE greybus: Initial commit 2014-08-11 15:29:23 +08:00
loopback.c greybus: loopback: fix 64-bit divisions 2015-04-16 10:26:33 +02:00
Makefile greybus: endo: add endo structures and logic 2015-04-09 22:50:09 +02:00
manifest.c greybus: bundle: s/class_type/class 2015-04-06 12:47:06 +02:00
manifest.h greybus: manifest: Use interface descriptor instead of module descriptor to get information 2015-04-06 12:05:58 +02:00
module.c greybus: endo: hook up endos into the device tree 2015-04-09 22:50:09 +02:00
module.h greybus: endo: hook up endos into the device tree 2015-04-09 22:50:09 +02:00
operation.c greybus: drop host-driver buffer headroom 2015-04-07 17:31:05 +02:00
operation.h greybus: operation: add explicit padding to message header 2015-04-07 17:31:05 +02:00
protocol.c greybus: clean up some small messes 2015-03-27 11:16:35 +01:00
protocol.h greybus: operation: refactor response handling 2015-03-30 15:20:34 +02:00
pwm.c greybus: Move briged phy structure definitions into gpbridge.h 2015-04-10 11:17:20 +02:00
README greybus: update README with info on how to build and contact me. 2014-08-11 15:44:51 +08:00
sdio.c greybus: Remove "-gb" suffix from .c files 2015-01-22 11:27:20 +08:00
spi.c greybus: connection: replace custom error function with dev_err 2015-03-19 17:28:19 +01:00
svc_msg.h greybus: interface: Fetch interface id instead of module id during setup 2015-04-05 18:04:38 +02:00
uart.c greybus: uart: remove packed-attribute from line-coding struct 2015-03-17 22:34:44 +01:00
usb.c greybus: usb: silence compiler warning 2015-03-19 17:27:08 +01:00
vibrator.c greybus: Greybus: Place module_init/exit() right after respective routines 2015-03-24 21:00:24 +01:00

Greybus kernel code

To build against the running kernel (odds are you don't want this):
	make

To build against a specific kernel source tree (odds are you want this):
	KERNELDIR=/home/some/random/place make

Any questions / concerns about this code base, please email:
	Greg Kroah-Hartman <greg@kroah.com>