summaryrefslogtreecommitdiffstats
path: root/drivers/usb/c67x00
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 17:25:19 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-31 17:28:44 -0700
commit720ce6e4b1ba83aa1ed526a47d36852ac6a25d7e (patch)
tree31444bad43019b9359d9345cdd87d0b1b625b2c7 /drivers/usb/c67x00
parent1fa0b42e7154d3563c21a5db2d18393f6022b3a6 (diff)
downloadlinux-stable-720ce6e4b1ba83aa1ed526a47d36852ac6a25d7e.tar.gz
linux-stable-720ce6e4b1ba83aa1ed526a47d36852ac6a25d7e.tar.bz2
linux-stable-720ce6e4b1ba83aa1ed526a47d36852ac6a25d7e.zip
USB: c67x00: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/c67x00')
-rw-r--r--drivers/usb/c67x00/c67x00-drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/c67x00/c67x00-drv.c b/drivers/usb/c67x00/c67x00-drv.c
index fe815ecd557e..8db3380c3329 100644
--- a/drivers/usb/c67x00/c67x00-drv.c
+++ b/drivers/usb/c67x00/c67x00-drv.c
@@ -131,7 +131,7 @@ static int c67x00_drv_probe(struct platform_device *pdev)
if (!res2)
return -ENODEV;
- pdata = pdev->dev.platform_data;
+ pdata = dev_get_platdata(&pdev->dev);
if (!pdata)
return -ENODEV;
@@ -154,7 +154,7 @@ static int c67x00_drv_probe(struct platform_device *pdev)
spin_lock_init(&c67x00->hpi.lock);
c67x00->hpi.regstep = pdata->hpi_regstep;
- c67x00->pdata = pdev->dev.platform_data;
+ c67x00->pdata = dev_get_platdata(&pdev->dev);
c67x00->pdev = pdev;
c67x00_ll_init(c67x00);