summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/blackfin.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2010-12-02 08:48:58 +0100
committerFelipe Balbi <balbi@ti.com>2010-12-10 09:21:23 +0100
commitf7ec94370f417fedad4db1054228ef958d48b926 (patch)
treeb036e02e21c04f60300394247869bdd5cda90026 /drivers/usb/musb/blackfin.c
parentusb: musb: blackfin: give it a context structure (diff)
downloadlinux-f7ec94370f417fedad4db1054228ef958d48b926.tar.xz
linux-f7ec94370f417fedad4db1054228ef958d48b926.zip
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.c4
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)
return 0;
}
-const struct musb_platform_ops musb_ops = {
+static const struct musb_platform_ops bfin_ops = {
.init = bfin_musb_init,
.exit = bfin_musb_exit,
@@ -479,6 +479,8 @@ static int __init bfin_probe(struct platform_device *pdev)
glue->dev = &pdev->dev;
glue->musb = musb;
+ pdata->platform_ops = &bfin_ops;
+
platform_set_drvdata(pdev, glue);
ret = platform_device_add_resources(musb, pdev->resource,