diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 17:05:28 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-31 17:28:46 -0700 |
commit | b977a3068a284b2ad4612cdb8ca326cbd2a7ffc9 (patch) | |
tree | 93e1a983ebfec38d2fa35b3a3c6d7b4ead74047b /drivers/usb/misc/usb3503.c | |
parent | ace0a5f9471ef51349dba59ff57beee2c3748a34 (diff) | |
download | linux-stable-b977a3068a284b2ad4612cdb8ca326cbd2a7ffc9.tar.gz linux-stable-b977a3068a284b2ad4612cdb8ca326cbd2a7ffc9.tar.bz2 linux-stable-b977a3068a284b2ad4612cdb8ca326cbd2a7ffc9.zip |
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 <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/usb3503.c')
-rw-r--r-- | drivers/usb/misc/usb3503.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |