diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-10-28 23:49:20 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-10-30 14:23:00 -0400 |
commit | afb3690c3cbd0bd82b267934b419c0643e2b938a (patch) | |
tree | 233119cd0212eafa18ecfd102ac2e572e998b0e6 /drivers | |
parent | f3ed0b66482fa2a0403280174a998487e9054867 (diff) |
gpio: bcm-kona: add missing .owner to struct gpio_chip
Add missing .owner of struct gpio_chip. This prevents the
module from being removed from underneath its users.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpio-bcm-kona.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c index b3d0f8163277..72c927dc3be1 100644 --- a/drivers/gpio/gpio-bcm-kona.c +++ b/drivers/gpio/gpio-bcm-kona.c | |||
@@ -280,6 +280,7 @@ static int bcm_kona_gpio_set_debounce(struct gpio_chip *chip, unsigned gpio, | |||
280 | 280 | ||
281 | static struct gpio_chip template_chip = { | 281 | static struct gpio_chip template_chip = { |
282 | .label = "bcm-kona-gpio", | 282 | .label = "bcm-kona-gpio", |
283 | .owner = THIS_MODULE, | ||
283 | .direction_input = bcm_kona_gpio_direction_input, | 284 | .direction_input = bcm_kona_gpio_direction_input, |
284 | .get = bcm_kona_gpio_get, | 285 | .get = bcm_kona_gpio_get, |
285 | .direction_output = bcm_kona_gpio_direction_output, | 286 | .direction_output = bcm_kona_gpio_direction_output, |