summaryrefslogtreecommitdiff
path: root/drivers/usb/misc/usb3503.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2016-06-01 10:29:56 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-08 08:19:59 +0300
commit495660cb53ba7c8cc8fcb577ad05001f12b58632 (patch)
treecc90ca537d3e203acfc836337754fb2b39fcdf78 /drivers/usb/misc/usb3503.c
parent7c348f1cfb6d8c6911fcb6d13b4c267a8bc93856 (diff)
downloadlinux-495660cb53ba7c8cc8fcb577ad05001f12b58632.tar.xz
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 <k.kozlowski@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.c1
1 files changed, 1 insertions, 0 deletions
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);
}