|
@@ -85,8 +85,8 @@ static int ci_hdrc_pci_probe(struct pci_dev *pdev,
|
|
|
|
|
|
/* register a nop PHY */
|
|
/* register a nop PHY */
|
|
ci->phy = usb_phy_generic_register();
|
|
ci->phy = usb_phy_generic_register();
|
|
- if (!ci->phy)
|
|
|
|
- return -ENOMEM;
|
|
|
|
|
|
+ if (IS_ERR(ci->phy))
|
|
|
|
+ return PTR_ERR(ci->phy);
|
|
|
|
|
|
memset(res, 0, sizeof(res));
|
|
memset(res, 0, sizeof(res));
|
|
res[0].start = pci_resource_start(pdev, 0);
|
|
res[0].start = pci_resource_start(pdev, 0);
|