From: Wei Yongjun Date: Tue, 29 Oct 2013 03:49:20 +0000 (+0800) Subject: gpio: bcm-kona: add missing .owner to struct gpio_chip X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=afb3690c3cbd0bd82b267934b419c0643e2b938a;p=linux-beck.git 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 Signed-off-by: Linus Walleij --- 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, static struct gpio_chip template_chip = { .label = "bcm-kona-gpio", + .owner = THIS_MODULE, .direction_input = bcm_kona_gpio_direction_input, .get = bcm_kona_gpio_get, .direction_output = bcm_kona_gpio_direction_output,