From: Axel Lin Date: Sun, 29 Jul 2012 02:54:42 +0000 (+0800) Subject: gpio: gpio-ml-ioh: Use spinlock for register access protection X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~45^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02a6794d57ce54b96b13db80831f35d66e0caf31;p=pandora-kernel.git gpio: gpio-ml-ioh: Use spinlock for register access protection gpio_chip.can_sleep is 0, but current code uses mutex in ioh_gpio_set, ioh_gpio_get and ioh_gpio_direction_input functions. Thus those functions are not callable from interrupt context. This patch converts mutex into spinlock. Signed-off-by: Axel Lin Signed-off-by: Linus Walleij --- Reading git-diff-tree failed