From: Krzysztof Kozlowski Date: Wed, 1 Jun 2016 07:29:56 +0000 (+0200) Subject: usb: misc: usb3503: Set platform data X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=495660cb53ba7c8cc8fcb577ad05001f12b58632;p=linux-beck.git usb: misc: usb3503: Set platform data Driver supports two paths of device instantiation: as platform and i2c device. In the platform path it lacks of storing the driver specific structure as drvdata. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c index b45cb77c0744..0cf2987b322f 100644 --- a/drivers/usb/misc/usb3503.c +++ b/drivers/usb/misc/usb3503.c @@ -338,6 +338,7 @@ static int usb3503_platform_probe(struct platform_device *pdev) if (!hub) return -ENOMEM; hub->dev = &pdev->dev; + platform_set_drvdata(pdev, hub); return usb3503_probe(hub); }