Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/drivers/power/isp1704_charger.c b/drivers/power/isp1704_charger.c
- index f2a7d97..76b28f6 100644
- --- a/drivers/power/isp1704_charger.c
- +++ b/drivers/power/isp1704_charger.c
- @@ -442,6 +442,7 @@ static int isp1704_charger_probe(struct platform_device *pdev)
- isp->phy = devm_usb_get_phy(&pdev->dev, USB_PHY_TYPE_USB2);
- if (IS_ERR(isp->phy)) {
- + dev_err(&pdev->dev, "usb_get_phy failed\n");
- ret = PTR_ERR(isp->phy);
- goto fail0;
- }
- @@ -452,8 +453,10 @@ static int isp1704_charger_probe(struct platform_device *pdev)
- isp1704_charger_set_power(isp, 1);
- ret = isp1704_test_ulpi(isp);
- - if (ret < 0)
- + if (ret < 0) {
- + dev_err(&pdev->dev, "isp1704_test_ulpi failed\n");
- goto fail1;
- + }
- isp->psy_desc.name = "isp1704";
- isp->psy_desc.type = POWER_SUPPLY_TYPE_USB;
- @@ -478,8 +481,10 @@ static int isp1704_charger_probe(struct platform_device *pdev)
- isp->nb.notifier_call = isp1704_notifier_call;
- ret = usb_register_notifier(isp->phy, &isp->nb);
- - if (ret)
- + if (ret) {
- + dev_err(&pdev->dev, "usb_register_notifier failed\n");
- goto fail2;
- + }
- dev_info(isp->dev, "registered with product id %s\n", isp->model);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement