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/da8xx.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/da8xx.c')
-rw-r--r-- | drivers/usb/musb/da8xx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c index 94ddfe01d673..45ccac3aad9d 100644 --- a/drivers/usb/musb/da8xx.c +++ b/drivers/usb/musb/da8xx.c | |||
@@ -475,7 +475,7 @@ static int da8xx_musb_exit(struct musb *musb) | |||
475 | return 0; | 475 | return 0; |
476 | } | 476 | } |
477 | 477 | ||
478 | const struct musb_platform_ops musb_ops = { | 478 | static const struct musb_platform_ops da8xx_ops = { |
479 | .init = da8xx_musb_init, | 479 | .init = da8xx_musb_init, |
480 | .exit = da8xx_musb_exit, | 480 | .exit = da8xx_musb_exit, |
481 | 481 | ||
@@ -517,6 +517,8 @@ static int __init da8xx_probe(struct platform_device *pdev) | |||
517 | glue->dev = &pdev->dev; | 517 | glue->dev = &pdev->dev; |
518 | glue->musb = musb; | 518 | glue->musb = musb; |
519 | 519 | ||
520 | pdata->platform_ops = &da8xx_ops; | ||
521 | |||
520 | platform_set_drvdata(pdev, glue); | 522 | platform_set_drvdata(pdev, glue); |
521 | 523 | ||
522 | ret = platform_device_add_resources(musb, pdev->resource, | 524 | ret = platform_device_add_resources(musb, pdev->resource, |