projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dd1a30
)
gpio: lpc18xx: use resource managed interface to register GPIO controller
author
Vladimir Zapolskiy
<
[email protected]
>
Wed, 28 Nov 2018 22:28:48 +0000
(
00:28
+0200)
committer
Linus Walleij
<
[email protected]
>
Fri, 7 Dec 2018 09:49:46 +0000
(10:49 +0100)
Slightly simplify deregistration of the GPIO controller driver.
Signed-off-by: Vladimir Zapolskiy <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
drivers/gpio/gpio-lpc18xx.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-lpc18xx.c
b/drivers/gpio/gpio-lpc18xx.c
index 52246221328b5d25f292cfea462df2837490b227..dc33185a89b120181754eb9d11111f5228f757d5 100644
(file)
--- a/
drivers/gpio/gpio-lpc18xx.c
+++ b/
drivers/gpio/gpio-lpc18xx.c
@@
-122,7
+122,7
@@
static int lpc18xx_gpio_probe(struct platform_device *pdev)
gc->gpio.parent = dev;
- ret =
gpiochip_add_data(
&gc->gpio, gc);
+ ret =
devm_gpiochip_add_data(dev,
&gc->gpio, gc);
if (ret) {
dev_err(dev, "failed to add gpio chip\n");
clk_disable_unprepare(gc->clk);
@@
-136,7
+136,6
@@
static int lpc18xx_gpio_remove(struct platform_device *pdev)
{
struct lpc18xx_gpio_chip *gc = platform_get_drvdata(pdev);
- gpiochip_remove(&gc->gpio);
clk_disable_unprepare(gc->clk);
return 0;