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/blackfin.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/blackfin.c')
-rw-r--r-- | drivers/usb/musb/blackfin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index 02eded21d171..03cb001c0e19 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c | |||
@@ -436,7 +436,7 @@ static int bfin_musb_exit(struct musb *musb) | |||
436 | return 0; | 436 | return 0; |
437 | } | 437 | } |
438 | 438 | ||
439 | const struct musb_platform_ops musb_ops = { | 439 | static const struct musb_platform_ops bfin_ops = { |
440 | .init = bfin_musb_init, | 440 | .init = bfin_musb_init, |
441 | .exit = bfin_musb_exit, | 441 | .exit = bfin_musb_exit, |
442 | 442 | ||
@@ -479,6 +479,8 @@ static int __init bfin_probe(struct platform_device *pdev) | |||
479 | glue->dev = &pdev->dev; | 479 | glue->dev = &pdev->dev; |
480 | glue->musb = musb; | 480 | glue->musb = musb; |
481 | 481 | ||
482 | pdata->platform_ops = &bfin_ops; | ||
483 | |||
482 | platform_set_drvdata(pdev, glue); | 484 | platform_set_drvdata(pdev, glue); |
483 | 485 | ||
484 | ret = platform_device_add_resources(musb, pdev->resource, | 486 | ret = platform_device_add_resources(musb, pdev->resource, |