Skip to content

Commit

Permalink
USB: c67x00: use dev_get_platdata()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and Greg Kroah-Hartman committed Aug 1, 2013
1 parent 1fa0b42 commit 720ce6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/c67x00/c67x00-drv.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 720ce6e

Please sign in to comment.