diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 04:03:12 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-07-30 04:21:54 -0400 |
commit | c1a7d67c1901347bdb3d06536cd69d018fbf2c4b (patch) | |
tree | 6819e5d478f2ceca17ab0eaeb568ee99fd09c79f /drivers/usb/musb/omap2430.c | |
parent | 19f9e188deb4bbcd5fc588f39dc63bdfa9103827 (diff) |
usb: musb: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/omap2430.c')
-rw-r--r-- | drivers/usb/musb/omap2430.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 6708a3b78ad8..ebb46eca1791 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c | |||
@@ -255,7 +255,7 @@ static void omap_musb_set_mailbox(struct omap2430_glue *glue) | |||
255 | { | 255 | { |
256 | struct musb *musb = glue_to_musb(glue); | 256 | struct musb *musb = glue_to_musb(glue); |
257 | struct device *dev = musb->controller; | 257 | struct device *dev = musb->controller; |
258 | struct musb_hdrc_platform_data *pdata = dev->platform_data; | 258 | struct musb_hdrc_platform_data *pdata = dev_get_platdata(dev); |
259 | struct omap_musb_board_data *data = pdata->board_data; | 259 | struct omap_musb_board_data *data = pdata->board_data; |
260 | struct usb_otg *otg = musb->xceiv->otg; | 260 | struct usb_otg *otg = musb->xceiv->otg; |
261 | 261 | ||
@@ -341,7 +341,7 @@ static int omap2430_musb_init(struct musb *musb) | |||
341 | int status = 0; | 341 | int status = 0; |
342 | struct device *dev = musb->controller; | 342 | struct device *dev = musb->controller; |
343 | struct omap2430_glue *glue = dev_get_drvdata(dev->parent); | 343 | struct omap2430_glue *glue = dev_get_drvdata(dev->parent); |
344 | struct musb_hdrc_platform_data *plat = dev->platform_data; | 344 | struct musb_hdrc_platform_data *plat = dev_get_platdata(dev); |
345 | struct omap_musb_board_data *data = plat->board_data; | 345 | struct omap_musb_board_data *data = plat->board_data; |
346 | 346 | ||
347 | /* We require some kind of external transceiver, hooked | 347 | /* We require some kind of external transceiver, hooked |
@@ -412,7 +412,7 @@ static void omap2430_musb_enable(struct musb *musb) | |||
412 | unsigned long timeout = jiffies + msecs_to_jiffies(1000); | 412 | unsigned long timeout = jiffies + msecs_to_jiffies(1000); |
413 | struct device *dev = musb->controller; | 413 | struct device *dev = musb->controller; |
414 | struct omap2430_glue *glue = dev_get_drvdata(dev->parent); | 414 | struct omap2430_glue *glue = dev_get_drvdata(dev->parent); |
415 | struct musb_hdrc_platform_data *pdata = dev->platform_data; | 415 | struct musb_hdrc_platform_data *pdata = dev_get_platdata(dev); |
416 | struct omap_musb_board_data *data = pdata->board_data; | 416 | struct omap_musb_board_data *data = pdata->board_data; |
417 | 417 | ||
418 | switch (glue->status) { | 418 | switch (glue->status) { |
@@ -482,7 +482,7 @@ static u64 omap2430_dmamask = DMA_BIT_MASK(32); | |||
482 | static int omap2430_probe(struct platform_device *pdev) | 482 | static int omap2430_probe(struct platform_device *pdev) |
483 | { | 483 | { |
484 | struct resource musb_resources[2]; | 484 | struct resource musb_resources[2]; |
485 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; | 485 | struct musb_hdrc_platform_data *pdata = dev_get_platdata(&pdev->dev); |
486 | struct omap_musb_board_data *data; | 486 | struct omap_musb_board_data *data; |
487 | struct platform_device *musb; | 487 | struct platform_device *musb; |
488 | struct omap2430_glue *glue; | 488 | struct omap2430_glue *glue; |