diff options
author | Felipe Balbi <balbi@ti.com> | 2010-12-02 02:48:58 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2010-12-10 03:21:23 -0500 |
commit | f7ec94370f417fedad4db1054228ef958d48b926 (patch) | |
tree | b036e02e21c04f60300394247869bdd5cda90026 /drivers/usb/musb/omap2430.c | |
parent | a023c631f546ef95d58969385825a47652ab9039 (diff) |
usb: musb: pass platform_ops via platform_data
... then we don't need to export any symbols
from glue layer to musb_core.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/omap2430.c')
-rw-r--r-- | drivers/usb/musb/omap2430.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index bca9df7557a4..2eea1703e630 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c | |||
@@ -333,7 +333,7 @@ static int omap2430_musb_exit(struct musb *musb) | |||
333 | return 0; | 333 | return 0; |
334 | } | 334 | } |
335 | 335 | ||
336 | const struct musb_platform_ops musb_ops = { | 336 | static const struct musb_platform_ops omap2430_ops = { |
337 | .init = omap2430_musb_init, | 337 | .init = omap2430_musb_init, |
338 | .exit = omap2430_musb_exit, | 338 | .exit = omap2430_musb_exit, |
339 | 339 | ||
@@ -378,6 +378,8 @@ static int __init omap2430_probe(struct platform_device *pdev) | |||
378 | glue->dev = &pdev->dev; | 378 | glue->dev = &pdev->dev; |
379 | glue->musb = musb; | 379 | glue->musb = musb; |
380 | 380 | ||
381 | pdata->platform_ops = &omap2430_ops; | ||
382 | |||
381 | platform_set_drvdata(pdev, glue); | 383 | platform_set_drvdata(pdev, glue); |
382 | 384 | ||
383 | ret = platform_device_add_resources(musb, pdev->resource, | 385 | ret = platform_device_add_resources(musb, pdev->resource, |