greybus: loopback: Fix warning on 32-bit build
authorAlexandre Bailon <abailon@baylibre.com>
Tue, 8 Mar 2016 15:37:36 +0000 (16:37 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 10 Mar 2016 06:31:32 +0000 (22:31 -0800)
commit89ec14ceaedf887fb666f09e1b768afdc32cb291
treed73e18ee395437a064fdc8cbf490d5342ecb5a07
parenta23aa56452a8c705c7da62e9eda4c2fafd837829
greybus: loopback: Fix warning on 32-bit build

gb_loopback_ro_avg_attr() is using "/" to divide two 64-bit integer,
causing a reference to __aeabi_uldivmod() that is not availalbe on 32-bit.
Instead, use do_div().

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c