/* OTG reporting */ bq->usb2_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); if (!IS_ERR_OR_NULL(bq->usb2_phy)) { INIT_WORK(&bq->usb_work, bq256xx_usb_work); bq->usb_nb.notifier_call = bq256xx_usb_notifier; usb_register_notifier(bq->usb2_phy, &bq->usb_nb); }