usb: misc: usb3503: Set platform data
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 1 Jun 2016 07:29:56 +0000 (09:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:19:59 +0000 (22:19 -0700)
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>
drivers/usb/misc/usb3503.c

index b45cb77c0744599a2ae7f77a12f3e014a59cba7a..0cf2987b322f0b54f8c6e93381e144350aaf39b0 100644 (file)
@@ -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);
 }
This page took 0.032254 seconds and 5 git commands to generate.