projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: ehci-sh: fix illegal phy_init() running when platform_data is NULL
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
usb
/
host
/
ehci-sh.c
diff --git
a/drivers/usb/host/ehci-sh.c
b/drivers/usb/host/ehci-sh.c
index ca819cdd0c5ecb895929ae2fbf7a6a7f2b3664bc..e7cb3925abf8e0276dc4c119e8e03116d0ea48bd 100644
(file)
--- a/
drivers/usb/host/ehci-sh.c
+++ b/
drivers/usb/host/ehci-sh.c
@@
-126,8
+126,7
@@
static int ehci_hcd_sh_probe(struct platform_device *pdev)
goto fail_create_hcd;
}
- if (pdev->dev.platform_data != NULL)
- pdata = pdev->dev.platform_data;
+ pdata = pdev->dev.platform_data;
/* initialize hcd */
hcd = usb_create_hcd(&ehci_sh_hc_driver, &pdev->dev,