usb: misc: usb3503: use dev_get_platdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 30 Jul 2013 08:05:28 +0000 (17:05 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2013 00:28:46 +0000 (17:28 -0700)
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>
drivers/usb/misc/usb3503.c

index c357839..cbb6b78 100644 (file)
@@ -179,7 +179,7 @@ err_hubmode:
 
 static int usb3503_probe(struct i2c_client *i2c, const struct i2c_device_id *id)
 {
-       struct usb3503_platform_data *pdata = i2c->dev.platform_data;
+       struct usb3503_platform_data *pdata = dev_get_platdata(&i2c->dev);
        struct device_node *np = i2c->dev.of_node;
        struct usb3503 *hub;
        int err = -ENOMEM;