Skip to content
Snippets Groups Projects
Commit 4a8527ef authored by Martin Krause's avatar Martin Krause Committed by Wolfgang Denk
Browse files

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: default avatarMartin Krause <martin.krase@tqs.de>
parent 16e23c3f
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <mpc5xxx.h> #include <mpc5xxx.h>
int usb_cpu_init() int usb_cpu_init(void)
{ {
/* Set the USB Clock */ /* Set the USB Clock */
*(vu_long *)MPC5XXX_CDM_48_FDC = CONFIG_USB_CLOCK; *(vu_long *)MPC5XXX_CDM_48_FDC = CONFIG_USB_CLOCK;
...@@ -41,12 +41,12 @@ int usb_cpu_init() ...@@ -41,12 +41,12 @@ int usb_cpu_init()
return 0; return 0;
} }
int usb_cpu_stop() int usb_cpu_stop(void)
{ {
return 0; return 0;
} }
int usb_cpu_init_fail() int usb_cpu_init_fail(void)
{ {
return 0; return 0;
} }
......
...@@ -669,7 +669,7 @@ static int ep_link (ohci_t *ohci, ed_t *edi) ...@@ -669,7 +669,7 @@ static int ep_link (ohci_t *ohci, ed_t *edi)
ed_p = &(((ed_t *)ed_p)->hwNextED)) ed_p = &(((ed_t *)ed_p)->hwNextED))
inter = ep_rev (6, ((ed_t *)ed_p)->int_interval); inter = ep_rev (6, ((ed_t *)ed_p)->int_interval);
ed->hwNextED = *ed_p; ed->hwNextED = *ed_p;
*ed_p = m32_swap(ed); *ed_p = m32_swap((unsigned long)ed);
} }
break; break;
} }
...@@ -687,11 +687,11 @@ static void periodic_unlink ( struct ohci *ohci, volatile struct ed *ed, ...@@ -687,11 +687,11 @@ static void periodic_unlink ( struct ohci *ohci, volatile struct ed *ed,
/* ED might have been unlinked through another path */ /* ED might have been unlinked through another path */
while (*ed_p != 0) { 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; *ed_p = ed->hwNextED;
break; break;
} }
ed_p = & (((struct ed *)m32_swap (ed_p))->hwNextED); ed_p = & (((struct ed *)m32_swap ((unsigned long)ed_p))->hwNextED);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment