diff options
author | Javier Carrasco <javier.carrasco@wolfvision.net> | 2024-03-05 06:55:01 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-03-05 14:33:08 +0100 |
commit | ec94233cb93c7525198b68c3be003472f8aaca0e (patch) | |
tree | 20bb8a0acadddb102b06b2507065aaf10cdb5457 /drivers/usb/misc | |
parent | usb: gadget: fsl: Increase size of name buffer for endpoints (diff) | |
download | linux-ec94233cb93c7525198b68c3be003472f8aaca0e.tar.xz linux-ec94233cb93c7525198b68c3be003472f8aaca0e.zip |
usb: misc: onboard_hub: use pointer consistently in the probe function
Commit 14485de431b0 ("usb: Use device_get_match_data()") overlooked the
already existing pointer to pdev->dev 'dev'.
Use the existing pointer 'dev' in device_get_match_data() to keep code
consistency.
Acked-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Javier Carrasco <javier.carrasco@wolfvision.net>
Link: https://lore.kernel.org/r/20240305-onboard_xvf3500-v7-1-ad3fb50e593b@wolfvision.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r-- | drivers/usb/misc/onboard_usb_hub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/onboard_usb_hub.c b/drivers/usb/misc/onboard_usb_hub.c index 4f2b0d62db6f..c6101ed2d9d4 100644 --- a/drivers/usb/misc/onboard_usb_hub.c +++ b/drivers/usb/misc/onboard_usb_hub.c @@ -260,7 +260,7 @@ static int onboard_hub_probe(struct platform_device *pdev) if (!hub) return -ENOMEM; - hub->pdata = device_get_match_data(&pdev->dev); + hub->pdata = device_get_match_data(dev); if (!hub->pdata) return -EINVAL; |