diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 04:06:20 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-07-30 04:21:58 -0400 |
commit | f074245960e8fec9948eb8022322e43670ace4e5 (patch) | |
tree | 0faf9ceeaa5ca30b35e06f786ba14c65c5aced05 /drivers/usb/renesas_usbhs | |
parent | c1a7d67c1901347bdb3d06536cd69d018fbf2c4b (diff) |
usb: renesas: 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/renesas_usbhs')
-rw-r--r-- | drivers/usb/renesas_usbhs/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index cfd205036aba..3b39757c13bc 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c | |||
@@ -416,7 +416,7 @@ static int usbhsc_drvcllbck_notify_hotplug(struct platform_device *pdev) | |||
416 | */ | 416 | */ |
417 | static int usbhs_probe(struct platform_device *pdev) | 417 | static int usbhs_probe(struct platform_device *pdev) |
418 | { | 418 | { |
419 | struct renesas_usbhs_platform_info *info = pdev->dev.platform_data; | 419 | struct renesas_usbhs_platform_info *info = dev_get_platdata(&pdev->dev); |
420 | struct renesas_usbhs_driver_callback *dfunc; | 420 | struct renesas_usbhs_driver_callback *dfunc; |
421 | struct usbhs_priv *priv; | 421 | struct usbhs_priv *priv; |
422 | struct resource *res, *irq_res; | 422 | struct resource *res, *irq_res; |
@@ -558,7 +558,7 @@ probe_end_pipe_exit: | |||
558 | static int usbhs_remove(struct platform_device *pdev) | 558 | static int usbhs_remove(struct platform_device *pdev) |
559 | { | 559 | { |
560 | struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev); | 560 | struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev); |
561 | struct renesas_usbhs_platform_info *info = pdev->dev.platform_data; | 561 | struct renesas_usbhs_platform_info *info = dev_get_platdata(&pdev->dev); |
562 | struct renesas_usbhs_driver_callback *dfunc = &info->driver_callback; | 562 | struct renesas_usbhs_driver_callback *dfunc = &info->driver_callback; |
563 | 563 | ||
564 | dev_dbg(&pdev->dev, "usb remove\n"); | 564 | dev_dbg(&pdev->dev, "usb remove\n"); |