Commit 5cf9d257 authored by Rupesh Gujare's avatar Rupesh Gujare Committed by Greg Kroah-Hartman

staging: ozwpan: Fix build warning.

This patch fixes following build warning.

drivers/built-in.o: In function `oz_hcd_heartbeat':
>> (.text+0x30aadd): undefined reference to `__divdi3'
   drivers/built-in.o: In function `oz_hcd_heartbeat':
>> (.text+0x30ac85): undefined reference to `__divdi3'
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarRupesh Gujare <rupesh.gujare@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fbf8d710
...@@ -1042,7 +1042,7 @@ int oz_hcd_heartbeat(void *hport) ...@@ -1042,7 +1042,7 @@ int oz_hcd_heartbeat(void *hport)
if (ep->credit < 0) if (ep->credit < 0)
continue; continue;
delta = timespec_sub(ts, ep->timestamp); delta = timespec_sub(ts, ep->timestamp);
ep->credit += timespec_to_ns(&delta) / NSEC_PER_MSEC; ep->credit += div_u64(timespec_to_ns(&delta), NSEC_PER_MSEC);
if (ep->credit > ep->credit_ceiling) if (ep->credit > ep->credit_ceiling)
ep->credit = ep->credit_ceiling; ep->credit = ep->credit_ceiling;
ep->timestamp = ts; ep->timestamp = ts;
...@@ -1086,7 +1086,7 @@ int oz_hcd_heartbeat(void *hport) ...@@ -1086,7 +1086,7 @@ int oz_hcd_heartbeat(void *hport)
continue; continue;
} }
delta = timespec_sub(ts, ep->timestamp); delta = timespec_sub(ts, ep->timestamp);
ep->credit += timespec_to_ns(&delta) / NSEC_PER_MSEC; ep->credit += div_u64(timespec_to_ns(&delta), NSEC_PER_MSEC);
ep->timestamp = ts; ep->timestamp = ts;
while (!list_empty(&ep->urb_list)) { while (!list_empty(&ep->urb_list)) {
struct oz_urb_link *urbl = struct oz_urb_link *urbl =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment