usb: dwc3: of-simple: Fix warning during unbind
authorAnurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Fri, 9 Sep 2016 13:28:37 +0000 (18:58 +0530)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 12 Sep 2016 07:07:24 +0000 (10:07 +0300)
commit8d53e626759415700022d421e4e0eab245c2dc23
treec627ba7ac3053a8fba273654a7a1d40be6b549cb
parent5e6c88d28ccbe72bedee1fbf4f9fea4764208598
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>
drivers/usb/dwc3/dwc3-of-simple.c