gpio: menz127: Drop lock field from struct men_z127_gpio
authorAxel Lin <axel.lin@ingics.com>
Wed, 9 Mar 2016 12:38:55 +0000 (20:38 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 30 Mar 2016 08:39:39 +0000 (10:39 +0200)
commitfd975a7b180c9a8f6e02d2251eaabe9b0dcfeed6
tree8e0446439d1467ea8ca1e37301fa037363630f72
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
gpio: menz127: Drop lock field from struct men_z127_gpio

Current code uses a uninitialized spin lock.
bgpio_init() already initialized a spin lock, so let's switch to use
&gc->bgpio_lock instead and remove the lock from struct men_z127_gpio.

Fixes: f436bc2726c6 "gpio: add driver for MEN 16Z127 GPIO controller"
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-menz127.c