Commit b977a3068a284b2ad4612cdb8ca326cbd2a7ffc9
Committed by
Greg Kroah-Hartman
1 parent
ace0a5f947
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/usb/misc/usb3503.c
... | ... | @@ -179,7 +179,7 @@ |
179 | 179 | |
180 | 180 | static int usb3503_probe(struct i2c_client *i2c, const struct i2c_device_id *id) |
181 | 181 | { |
182 | - struct usb3503_platform_data *pdata = i2c->dev.platform_data; | |
182 | + struct usb3503_platform_data *pdata = dev_get_platdata(&i2c->dev); | |
183 | 183 | struct device_node *np = i2c->dev.of_node; |
184 | 184 | struct usb3503 *hub; |
185 | 185 | int err = -ENOMEM; |