From: Jingoo Han Date: Tue, 30 Jul 2013 08:05:28 +0000 (+0900) Subject: usb: misc: usb3503: use dev_get_platdata() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b977a3068a284b2ad4612cdb8ca326cbd2a7ffc9;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git usb: misc: usb3503: 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c index c3578393ddef..cbb6b7841653 100644 --- a/drivers/usb/misc/usb3503.c +++ b/drivers/usb/misc/usb3503.c @@ -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;