diff options
author | Hema Kalliguddi <hemahk@ti.com> | 2010-09-22 20:27:40 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2010-12-01 03:56:33 -0500 |
commit | ea65df57c2eea803535a071752efb030c46a11f5 (patch) | |
tree | 33284e6cc39a6d6b76528089c92b6cc103246cc6 /drivers/usb/musb | |
parent | 0ae86689d88bebba16c2db899f845446578d53b3 (diff) |
usb: musb: remove board_data parameter from musb_platform_init()
Removed the board_data parameter being
passed to musb_platform_init function
as board_data can be extracted from
device structure which is already member
of musb structure.
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Hema HK <hemahk@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/blackfin.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/davinci.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/musb_core.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/musb_core.h | 2 | ||||
-rw-r--r-- | drivers/usb/musb/omap2430.c | 6 | ||||
-rw-r--r-- | drivers/usb/musb/tusb6010.c | 2 |
6 files changed, 9 insertions, 7 deletions
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index 611a9d274363..e8cbcc59c419 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c | |||
@@ -323,7 +323,7 @@ int musb_platform_set_mode(struct musb *musb, u8 musb_mode) | |||
323 | return -EIO; | 323 | return -EIO; |
324 | } | 324 | } |
325 | 325 | ||
326 | int __init musb_platform_init(struct musb *musb, void *board_data) | 326 | int __init musb_platform_init(struct musb *musb) |
327 | { | 327 | { |
328 | 328 | ||
329 | /* | 329 | /* |
diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c index 6e67629f50cc..051e2bf1897a 100644 --- a/drivers/usb/musb/davinci.c +++ b/drivers/usb/musb/davinci.c | |||
@@ -376,7 +376,7 @@ int musb_platform_set_mode(struct musb *musb, u8 mode) | |||
376 | return -EIO; | 376 | return -EIO; |
377 | } | 377 | } |
378 | 378 | ||
379 | int __init musb_platform_init(struct musb *musb, void *board_data) | 379 | int __init musb_platform_init(struct musb *musb) |
380 | { | 380 | { |
381 | void __iomem *tibase = musb->ctrl_base; | 381 | void __iomem *tibase = musb->ctrl_base; |
382 | u32 revision; | 382 | u32 revision; |
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index c9f9024c5515..4b71a1bb4187 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -2025,7 +2025,7 @@ bad_config: | |||
2025 | * isp1504, non-OTG, etc) mostly hooking up through ULPI. | 2025 | * isp1504, non-OTG, etc) mostly hooking up through ULPI. |
2026 | */ | 2026 | */ |
2027 | musb->isr = generic_interrupt; | 2027 | musb->isr = generic_interrupt; |
2028 | status = musb_platform_init(musb, plat->board_data); | 2028 | status = musb_platform_init(musb); |
2029 | if (status < 0) | 2029 | if (status < 0) |
2030 | goto fail2; | 2030 | goto fail2; |
2031 | 2031 | ||
diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h index 69797e5b46a7..6ad72f395e28 100644 --- a/drivers/usb/musb/musb_core.h +++ b/drivers/usb/musb/musb_core.h | |||
@@ -614,7 +614,7 @@ extern int musb_platform_get_vbus_status(struct musb *musb); | |||
614 | #define musb_platform_get_vbus_status(x) 0 | 614 | #define musb_platform_get_vbus_status(x) 0 |
615 | #endif | 615 | #endif |
616 | 616 | ||
617 | extern int __init musb_platform_init(struct musb *musb, void *board_data); | 617 | extern int __init musb_platform_init(struct musb *musb); |
618 | extern int musb_platform_exit(struct musb *musb); | 618 | extern int musb_platform_exit(struct musb *musb); |
619 | 619 | ||
620 | #endif /* __MUSB_CORE_H__ */ | 620 | #endif /* __MUSB_CORE_H__ */ |
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index ed618bde1eec..27dabcf0a868 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c | |||
@@ -187,10 +187,12 @@ int musb_platform_set_mode(struct musb *musb, u8 musb_mode) | |||
187 | return 0; | 187 | return 0; |
188 | } | 188 | } |
189 | 189 | ||
190 | int __init musb_platform_init(struct musb *musb, void *board_data) | 190 | int __init musb_platform_init(struct musb *musb) |
191 | { | 191 | { |
192 | u32 l; | 192 | u32 l; |
193 | struct omap_musb_board_data *data = board_data; | 193 | struct device *dev = musb->controller; |
194 | struct musb_hdrc_platform_data *plat = dev->platform_data; | ||
195 | struct omap_musb_board_data *data = plat->board_data; | ||
194 | 196 | ||
195 | /* We require some kind of external transceiver, hooked | 197 | /* We require some kind of external transceiver, hooked |
196 | * up through ULPI. TWL4030-family PMICs include one, | 198 | * up through ULPI. TWL4030-family PMICs include one, |
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index bde40efc7046..41b04b906ce1 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c | |||
@@ -1091,7 +1091,7 @@ err: | |||
1091 | return -ENODEV; | 1091 | return -ENODEV; |
1092 | } | 1092 | } |
1093 | 1093 | ||
1094 | int __init musb_platform_init(struct musb *musb, void *board_data) | 1094 | int __init musb_platform_init(struct musb *musb) |
1095 | { | 1095 | { |
1096 | struct platform_device *pdev; | 1096 | struct platform_device *pdev; |
1097 | struct resource *mem; | 1097 | struct resource *mem; |