From: Ronald Wahl Date: Wed, 19 Nov 2014 15:37:27 +0000 (+0100) Subject: usb: gadget: at91_udc: move prepare clk into process context X-Git-Tag: omap-for-v3.19/fixes-rc1~87^2~32^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2ba27a5c56ff7204d8a8684893d64d4afe2cee5;p=pandora-kernel.git usb: gadget: at91_udc: move prepare clk into process context Commit 7628083227b6bc4a7e33d7c381d7a4e558424b6b (usb: gadget: at91_udc: prepare clk before calling enable) added clock preparation in interrupt context. This is not allowed as it might sleep. Also setting the clock rate is unsafe to call from there for the same reason. Move clock preparation and setting clock rate into process context (at91udc_probe). Signed-off-by: Ronald Wahl Acked-by: Alexandre Belloni Acked-by: Boris Brezillon Acked-by: Nicolas Ferre Cc: Felipe Balbi Cc: # v3.17+ Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed