diff options
author | Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> | 2016-09-09 18:58:37 +0530 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-09-12 10:07:24 +0300 |
commit | 8d53e626759415700022d421e4e0eab245c2dc23 (patch) | |
tree | c627ba7ac3053a8fba273654a7a1d40be6b549cb /drivers/usb/dwc3 | |
parent | 5e6c88d28ccbe72bedee1fbf4f9fea4764208598 (diff) | |
download | blackbird-op-linux-8d53e626759415700022d421e4e0eab245c2dc23.tar.gz blackbird-op-linux-8d53e626759415700022d421e4e0eab245c2dc23.zip |
usb: dwc3: of-simple: Fix warning during unbind
In dwc3_of_simple_remove() we are using clk_unprepare() before doing
any clk_disable(). If we enable Common CLK framework (CCF) and try to
unbind dwc3-of-simple driver, we see kernel WARN messages.
This patch fixes this kernel warning by using clk_disable_unprepare()
instead of clk_unprepare().
Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/dwc3-of-simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index 283f9980a260..ce9a070f4fe6 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -112,7 +112,7 @@ static int dwc3_of_simple_remove(struct platform_device *pdev) int i; for (i = 0; i < simple->num_clocks; i++) { - clk_unprepare(simple->clks[i]); + clk_disable_unprepare(simple->clks[i]); clk_put(simple->clks[i]); } |