summaryrefslogtreecommitdiff
path: root/drivers/usb_ohci.c
diff options
context:
space:
mode:
authorMartin Krause <martin.krause@tqs.de>2007-08-21 12:40:34 +0200
committerWolfgang Denk <wd@denx.de>2007-08-29 02:09:58 +0200
commit4a8527ef086ec7c89f40674ef024ae6f988a614a (patch)
treea1e07fdd562569e725f7be5108a192fbbd46db78 /drivers/usb_ohci.c
parent16e23c3f5dab6937f5109365416808c7f15c122b (diff)
downloadu-boot-imx-4a8527ef086ec7c89f40674ef024ae6f988a614a.zip
u-boot-imx-4a8527ef086ec7c89f40674ef024ae6f988a614a.tar.gz
u-boot-imx-4a8527ef086ec7c89f40674ef024ae6f988a614a.tar.bz2
MPC5xxx: fix some compiler warnings in USB code
Fix the following warnings: - usb.c:xx: warning: function declaration isn't a prototype - usb_ohci.c:xxx: warning: passing argument 1 of '__fswab32' makes integer from pointer wihtout a cast Signed-off-by: Martin Krause <martin.krase@tqs.de>
Diffstat (limited to 'drivers/usb_ohci.c')
-rw-r--r--drivers/usb_ohci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb_ohci.c b/drivers/usb_ohci.c
index f0a37b2..14984a5 100644
--- a/drivers/usb_ohci.c
+++ b/drivers/usb_ohci.c
@@ -669,7 +669,7 @@ static int ep_link (ohci_t *ohci, ed_t *edi)
ed_p = &(((ed_t *)ed_p)->hwNextED))
inter = ep_rev (6, ((ed_t *)ed_p)->int_interval);
ed->hwNextED = *ed_p;
- *ed_p = m32_swap(ed);
+ *ed_p = m32_swap((unsigned long)ed);
}
break;
}
@@ -687,11 +687,11 @@ static void periodic_unlink ( struct ohci *ohci, volatile struct ed *ed,
/* ED might have been unlinked through another path */
while (*ed_p != 0) {
- if (((struct ed *)m32_swap (ed_p)) == ed) {
+ if (((struct ed *)m32_swap ((unsigned long)ed_p)) == ed) {
*ed_p = ed->hwNextED;
break;
}
- ed_p = & (((struct ed *)m32_swap (ed_p))->hwNextED);
+ ed_p = & (((struct ed *)m32_swap ((unsigned long)ed_p))->hwNextED);
}
}
}