mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
gpio: clps711x: 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: Axel Lin <axel.lin@ingics.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
a5d6d271b3
commit
f86b7c70bc
@ -65,6 +65,7 @@ static int clps711x_gpio_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
bgc->gc.base = id * 8;
|
||||
bgc->gc.owner = THIS_MODULE;
|
||||
platform_set_drvdata(pdev, bgc);
|
||||
|
||||
return gpiochip_add(&bgc->gc);
|
||||
|
Loading…
Reference in New Issue
Block a user