diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-02-04 18:25:27 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-02-06 13:33:48 +0400 |
commit | f86b7c70bc03236188c9a865aacd57b8d1ddb08c (patch) | |
tree | 71176ddb24d110c4f2fe00e0f84839f7de56a484 /drivers/gpio/gpio-clps711x.c | |
parent | a5d6d271b388330a21ff75bca928fefb8489a6f5 (diff) | |
download | linux-f86b7c70bc03236188c9a865aacd57b8d1ddb08c.tar.xz |
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>
Diffstat (limited to 'drivers/gpio/gpio-clps711x.c')
-rw-r--r-- | drivers/gpio/gpio-clps711x.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c index d3550274b8f7..20a7839e31ef 100644 --- a/drivers/gpio/gpio-clps711x.c +++ b/drivers/gpio/gpio-clps711x.c @@ -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); |