Commit 893760ad authored by Tomeu Vizoso's avatar Tomeu Vizoso

DEBUG

parent 2f27c46e
...@@ -358,10 +358,13 @@ static void dwc2_gusbcfg_init(struct dwc2_hsotg *hsotg) ...@@ -358,10 +358,13 @@ static void dwc2_gusbcfg_init(struct dwc2_hsotg *hsotg)
static int dwc2_vbus_supply_init(struct dwc2_hsotg *hsotg) static int dwc2_vbus_supply_init(struct dwc2_hsotg *hsotg)
{ {
printk("*** %s: hsotg->vbus_supply %p %d\n", __func__, hsotg->vbus_supply, 1);
hsotg->vbus_supply = devm_regulator_get_optional(hsotg->dev, "vbus"); hsotg->vbus_supply = devm_regulator_get_optional(hsotg->dev, "vbus");
printk("*** %s: hsotg->vbus_supply %p %d\n", __func__, hsotg->vbus_supply, 2);
if (IS_ERR(hsotg->vbus_supply)) if (IS_ERR(hsotg->vbus_supply))
return 0; return 0;
printk("*** %s: hsotg->vbus_supply %p %d\n", __func__, hsotg->vbus_supply, 3);
return regulator_enable(hsotg->vbus_supply); return regulator_enable(hsotg->vbus_supply);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment