We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eed04fa commit 34b990eCopy full SHA for 34b990e
drivers/usb/misc/onboard_usb_hub.c
@@ -78,7 +78,7 @@ static int onboard_hub_power_on(struct onboard_hub *hub)
78
err = regulator_bulk_enable(hub->pdata->num_supplies, hub->supplies);
79
if (err) {
80
dev_err(hub->dev, "failed to enable supplies: %pe\n", ERR_PTR(err));
81
- return err;
+ goto disable_clk;
82
}
83
84
fsleep(hub->pdata->reset_us);
@@ -87,6 +87,10 @@ static int onboard_hub_power_on(struct onboard_hub *hub)
87
hub->is_powered_on = true;
88
89
return 0;
90
+
91
+disable_clk:
92
+ clk_disable_unprepare(hub->clk);
93
+ return err;
94
95
96
static int onboard_hub_power_off(struct onboard_hub *hub)
0 commit comments