Skip to content

Commit

Permalink
gpio: clps711x: Add missing .owner to struct gpio_chip
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Linus Walleij committed Feb 6, 2014
1 parent a5d6d27 commit f86b7c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpio/gpio-clps711x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f86b7c7

Please sign in to comment.