aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-rdc321x.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-09-01 02:11:22 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-09-01 06:52:24 -0400
commit1146f8822ae6601e24f9072d6cd74f76506142cd (patch)
tree100cf7b583b03032fc2ee091ab3c585e8b21d2e6 /drivers/gpio/gpio-rdc321x.c
parentdd2914972e5f6d9c1a687158c0f65b81d239fe37 (diff)
gpio: rdc321x: Prevent removal of modules exporting active GPIOs
This driver can be built as a module, set the missing owner field of struct gpio_chip to prevent removal of modules exporting active GPIOs. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-rdc321x.c')
-rw-r--r--drivers/gpio/gpio-rdc321x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-rdc321x.c b/drivers/gpio/gpio-rdc321x.c
index e97016af6443..b62d443e9a59 100644
--- a/drivers/gpio/gpio-rdc321x.c
+++ b/drivers/gpio/gpio-rdc321x.c
@@ -170,6 +170,7 @@ static int __devinit rdc321x_gpio_probe(struct platform_device *pdev)
170 rdc321x_gpio_dev->reg2_data_base = r->start + 0x4; 170 rdc321x_gpio_dev->reg2_data_base = r->start + 0x4;
171 171
172 rdc321x_gpio_dev->chip.label = "rdc321x-gpio"; 172 rdc321x_gpio_dev->chip.label = "rdc321x-gpio";
173 rdc321x_gpio_dev->chip.owner = THIS_MODULE;
173 rdc321x_gpio_dev->chip.direction_input = rdc_gpio_direction_input; 174 rdc321x_gpio_dev->chip.direction_input = rdc_gpio_direction_input;
174 rdc321x_gpio_dev->chip.direction_output = rdc_gpio_config; 175 rdc321x_gpio_dev->chip.direction_output = rdc_gpio_config;
175 rdc321x_gpio_dev->chip.get = rdc_gpio_get_value; 176 rdc321x_gpio_dev->chip.get = rdc_gpio_get_value;