From: Axel Lin Date: Wed, 14 Nov 2012 08:37:45 +0000 (+0800) Subject: pinctrl: plgpio: Call clk_disable_unprepare only if clk_prepare_enable is called X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~94^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9804049097af11b4f64a82b0e8c8078b3f2cbada;p=pandora-kernel.git pinctrl: plgpio: Call clk_disable_unprepare only if clk_prepare_enable is called This driver allows clk_get() failure, and still work without it. This patch adds !IS_ERR(plgpio->clk) checking in plgpio_request() error path so we only call clk_disable_unprepare() if clk_prepare_enable() is called. Signed-off-by: Axel Lin Acked-by: Viresh Kumar Signed-off-by: Linus Walleij --- Reading git-diff-tree failed