gpio: clps711x: Add missing .owner to struct gpio_chip
authorAxel Lin <axel.lin@ingics.com>
Tue, 4 Feb 2014 14:25:27 +0000 (22:25 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 6 Feb 2014 09:33:48 +0000 (10:33 +0100)
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>
drivers/gpio/gpio-clps711x.c

index d3550274b8f7e64c293bc8d53ef7cd51598ed5f6..20a7839e31ef73026b34167d9bbacd12f6f51013 100644 (file)
@@ -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);
This page took 0.024726 seconds and 5 git commands to generate.