aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/fsl-mph-dr-of.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 06:59:40 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-31 20:53:50 -0400
commitd4f09e28d7bc5c1adde8229b1e89401f23fb44f9 (patch)
tree839932c47eb570a24b6758a4829b81839310395b /drivers/usb/host/fsl-mph-dr-of.c
parent4fae6f0fa86f92e6bc7429371b1e177ad0aaac66 (diff)
USB: host: 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/host/fsl-mph-dr-of.c')
-rw-r--r--drivers/usb/host/fsl-mph-dr-of.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/fsl-mph-dr-of.c b/drivers/usb/host/fsl-mph-dr-of.c
index 11e0b79ff9d5..cfbff7161828 100644
--- a/drivers/usb/host/fsl-mph-dr-of.c
+++ b/drivers/usb/host/fsl-mph-dr-of.c
@@ -258,7 +258,7 @@ static int fsl_usb2_mph_dr_of_remove(struct platform_device *ofdev)
258 258
259int fsl_usb2_mpc5121_init(struct platform_device *pdev) 259int fsl_usb2_mpc5121_init(struct platform_device *pdev)
260{ 260{
261 struct fsl_usb2_platform_data *pdata = pdev->dev.platform_data; 261 struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev);
262 struct clk *clk; 262 struct clk *clk;
263 char clk_name[10]; 263 char clk_name[10];
264 int base, clk_num; 264 int base, clk_num;
@@ -298,7 +298,7 @@ int fsl_usb2_mpc5121_init(struct platform_device *pdev)
298 298
299static void fsl_usb2_mpc5121_exit(struct platform_device *pdev) 299static void fsl_usb2_mpc5121_exit(struct platform_device *pdev)
300{ 300{
301 struct fsl_usb2_platform_data *pdata = pdev->dev.platform_data; 301 struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev);
302 302
303 pdata->regs = NULL; 303 pdata->regs = NULL;
304 304