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/tusb6010.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/tusb6010.c')
-rw-r--r-- | drivers/usb/musb/tusb6010.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index 2ff78d6b2eff..d6b832641c53 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c | |||
@@ -1178,7 +1178,7 @@ static int tusb_musb_exit(struct musb *musb) | |||
1178 | return 0; | 1178 | return 0; |
1179 | } | 1179 | } |
1180 | 1180 | ||
1181 | const struct musb_platform_ops musb_ops = { | 1181 | static const struct musb_platform_ops tusb_ops = { |
1182 | .init = tusb_musb_init, | 1182 | .init = tusb_musb_init, |
1183 | .exit = tusb_musb_exit, | 1183 | .exit = tusb_musb_exit, |
1184 | 1184 | ||
@@ -1221,6 +1221,8 @@ static int __init tusb_probe(struct platform_device *pdev) | |||
1221 | glue->dev = &pdev->dev; | 1221 | glue->dev = &pdev->dev; |
1222 | glue->musb = musb; | 1222 | glue->musb = musb; |
1223 | 1223 | ||
1224 | pdata->platform_ops = &tusb_ops; | ||
1225 | |||
1224 | platform_set_drvdata(pdev, glue); | 1226 | platform_set_drvdata(pdev, glue); |
1225 | 1227 | ||
1226 | ret = platform_device_add_resources(musb, pdev->resource, | 1228 | ret = platform_device_add_resources(musb, pdev->resource, |