]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commit
usb: dwc3: of-simple: Fix warning during unbind
authorAnurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Wed, 14 Sep 2016 13:57:11 +0000 (19:27 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 15 Sep 2016 16:22:48 +0000 (18:22 +0200)
commitf69e4ea17610f3973e8f3ca53f79c78b4a27b04e
treeb3f7b06c75f58c06b2936b0231f5f0961425e95e
parent08193fed422066f356652bfbb971d9ef24f9ab11
usb: dwc3: of-simple: Fix warning during unbind

In dwc3_of_simple_remove() we are using clk_unprepare() before
doing any clk_disable(). Because of this we see kernel warning
during unbind if we enable Common CLK framework(CCF).
This patch fixes this kernel warning by using clk_disable_unprepare
instead of clk_unprepare().

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/usb/dwc3/dwc3-of-simple.c