mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
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>
This commit is contained in:
parent
7c348f1cfb
commit
495660cb53
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue