]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: Add missing spin_lock_init in gpio-pch driver
authorAxel Lin <axel.lin@gmail.com>
Wed, 1 Feb 2012 02:51:53 +0000 (10:51 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 2 Feb 2012 04:59:15 +0000 (21:59 -0700)
commita59a31f39cca48de067799faf39aa30a235d9c27
tree5f7ec948fd7fbade13192aa11311bad91cde2b7a
parentc64960cd216a9e1be6b963876507a09fadd7fdcb
gpio: Add missing spin_lock_init in gpio-pch driver

This bug was introduced by commit d1ab1a42
"gpio-pch: add spinlock in suspend/resume processing"
which adds a spinlock to struct pch_gpio but never init the spinlock.

Reported-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-pch.c