diff options
| -rw-r--r-- | drivers/usb/chipidea/ci_hdrc_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_pci.c b/drivers/usb/chipidea/ci_hdrc_pci.c index b59195edf636..b635ab67490d 100644 --- a/drivers/usb/chipidea/ci_hdrc_pci.c +++ b/drivers/usb/chipidea/ci_hdrc_pci.c | |||
| @@ -85,8 +85,8 @@ static int ci_hdrc_pci_probe(struct pci_dev *pdev, | |||
| 85 | 85 | ||
| 86 | /* register a nop PHY */ | 86 | /* register a nop PHY */ |
| 87 | ci->phy = usb_phy_generic_register(); | 87 | ci->phy = usb_phy_generic_register(); |
| 88 | if (!ci->phy) | 88 | if (IS_ERR(ci->phy)) |
| 89 | return -ENOMEM; | 89 | return PTR_ERR(ci->phy); |
| 90 | 90 | ||
| 91 | memset(res, 0, sizeof(res)); | 91 | memset(res, 0, sizeof(res)); |
| 92 | res[0].start = pci_resource_start(pdev, 0); | 92 | res[0].start = pci_resource_start(pdev, 0); |
