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>
这个提交包含在:
@@ -1178,7 +1178,7 @@ static int tusb_musb_exit(struct musb *musb)
|
||||
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 @@ static int __init tusb_probe(struct platform_device *pdev)
|
||||
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,
|
||||
|
在新工单中引用
屏蔽一个用户