diff options
Diffstat (limited to 'drivers/usb/c67x00')
-rw-r--r-- | drivers/usb/c67x00/c67x00-drv.c | 4 |
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) | |||
131 | if (!res2) | 131 | if (!res2) |
132 | return -ENODEV; | 132 | return -ENODEV; |
133 | 133 | ||
134 | pdata = pdev->dev.platform_data; | 134 | pdata = dev_get_platdata(&pdev->dev); |
135 | if (!pdata) | 135 | if (!pdata) |
136 | return -ENODEV; | 136 | return -ENODEV; |
137 | 137 | ||
@@ -154,7 +154,7 @@ static int c67x00_drv_probe(struct platform_device *pdev) | |||
154 | 154 | ||
155 | spin_lock_init(&c67x00->hpi.lock); | 155 | spin_lock_init(&c67x00->hpi.lock); |
156 | c67x00->hpi.regstep = pdata->hpi_regstep; | 156 | c67x00->hpi.regstep = pdata->hpi_regstep; |
157 | c67x00->pdata = pdev->dev.platform_data; | 157 | c67x00->pdata = dev_get_platdata(&pdev->dev); |
158 | c67x00->pdev = pdev; | 158 | c67x00->pdev = pdev; |
159 | 159 | ||
160 | c67x00_ll_init(c67x00); | 160 | c67x00_ll_init(c67x00); |