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/davinci.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/davinci.c')
-rw-r--r-- | drivers/usb/musb/davinci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c index 661870a1cd4d..831a04dd5a53 100644 --- a/drivers/usb/musb/davinci.c +++ b/drivers/usb/musb/davinci.c | |||
@@ -510,7 +510,7 @@ static int davinci_musb_exit(struct musb *musb) | |||
510 | return 0; | 510 | return 0; |
511 | } | 511 | } |
512 | 512 | ||
513 | const struct musb_platform_ops musb_ops = { | 513 | static const struct musb_platform_ops davinci_ops = { |
514 | .init = davinci_musb_init, | 514 | .init = davinci_musb_init, |
515 | .exit = davinci_musb_exit, | 515 | .exit = davinci_musb_exit, |
516 | 516 | ||
@@ -551,6 +551,8 @@ static int __init davinci_probe(struct platform_device *pdev) | |||
551 | glue->dev = &pdev->dev; | 551 | glue->dev = &pdev->dev; |
552 | glue->musb = musb; | 552 | glue->musb = musb; |
553 | 553 | ||
554 | pdata->platform_ops = &davinci_ops; | ||
555 | |||
554 | platform_set_drvdata(pdev, glue); | 556 | platform_set_drvdata(pdev, glue); |
555 | 557 | ||
556 | ret = platform_device_add_resources(musb, pdev->resource, | 558 | ret = platform_device_add_resources(musb, pdev->resource, |