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>
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c
index 2ff78d6..d6b8326 100644
--- a/drivers/usb/musb/tusb6010.c
+++ b/drivers/usb/musb/tusb6010.c
@@ -1178,7 +1178,7 @@
return 0;
}
-const struct musb_platform_ops musb_ops = {
+static const struct musb_platform_ops tusb_ops = {
.init = tusb_musb_init,
.exit = tusb_musb_exit,
@@ -1221,6 +1221,8 @@
glue->dev = &pdev->dev;
glue->musb = musb;
+ pdata->platform_ops = &tusb_ops;
+
platform_set_drvdata(pdev, glue);
ret = platform_device_add_resources(musb, pdev->resource,