From: Axel Lin Date: Sun, 29 Jul 2012 02:55:54 +0000 (+0800) Subject: gpio: gpio-pch: Use spinlock for register access protection X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~45^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cb6580c0b2690e5c6ac1acd9375fa55d72af289;p=pandora-kernel.git gpio: gpio-pch: Use spinlock for register access protection gpio_chip.can_sleep is 0, but current code uses mutex in pch_gpio_set pch_gpio_get and pch_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