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>
This commit is contained in:
@@ -510,7 +510,7 @@ static int davinci_musb_exit(struct musb *musb)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const struct musb_platform_ops musb_ops = {
|
||||
static const struct musb_platform_ops davinci_ops = {
|
||||
.init = davinci_musb_init,
|
||||
.exit = davinci_musb_exit,
|
||||
|
||||
@@ -551,6 +551,8 @@ static int __init davinci_probe(struct platform_device *pdev)
|
||||
glue->dev = &pdev->dev;
|
||||
glue->musb = musb;
|
||||
|
||||
pdata->platform_ops = &davinci_ops;
|
||||
|
||||
platform_set_drvdata(pdev, glue);
|
||||
|
||||
ret = platform_device_add_resources(musb, pdev->resource,
|
||||
|
Reference in New Issue
Block a user