diff options
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, |