summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-clps711x.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-02-04 22:25:27 +0800
committerLinus Walleij <linus.walleij@linaro.org>2014-02-06 10:33:48 +0100
commitf86b7c70bc03236188c9a865aacd57b8d1ddb08c (patch)
tree71176ddb24d110c4f2fe00e0f84839f7de56a484 /drivers/gpio/gpio-clps711x.c
parenta5d6d271b388330a21ff75bca928fefb8489a6f5 (diff)
downloadblackbird-op-linux-f86b7c70bc03236188c9a865aacd57b8d1ddb08c.tar.gz
blackbird-op-linux-f86b7c70bc03236188c9a865aacd57b8d1ddb08c.zip
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.c1
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);
OpenPOWER on IntegriCloud