Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afb3690c authored by Wei Yongjun's avatar Wei Yongjun Committed by Linus Walleij
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f3ed0b66
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,