diff options
Diffstat (limited to 'drivers/gpio/gpio-rdc321x.c')
-rw-r--r-- | drivers/gpio/gpio-rdc321x.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-rdc321x.c b/drivers/gpio/gpio-rdc321x.c index 9fa7e53331c9..d729bc8a554d 100644 --- a/drivers/gpio/gpio-rdc321x.c +++ b/drivers/gpio/gpio-rdc321x.c | |||
@@ -199,14 +199,11 @@ static int rdc321x_gpio_probe(struct platform_device *pdev) | |||
199 | 199 | ||
200 | static int rdc321x_gpio_remove(struct platform_device *pdev) | 200 | static int rdc321x_gpio_remove(struct platform_device *pdev) |
201 | { | 201 | { |
202 | int ret; | ||
203 | struct rdc321x_gpio *rdc321x_gpio_dev = platform_get_drvdata(pdev); | 202 | struct rdc321x_gpio *rdc321x_gpio_dev = platform_get_drvdata(pdev); |
204 | 203 | ||
205 | ret = gpiochip_remove(&rdc321x_gpio_dev->chip); | 204 | gpiochip_remove(&rdc321x_gpio_dev->chip); |
206 | if (ret) | ||
207 | dev_err(&pdev->dev, "failed to unregister chip\n"); | ||
208 | 205 | ||
209 | return ret; | 206 | return 0; |
210 | } | 207 | } |
211 | 208 | ||
212 | static struct platform_driver rdc321x_gpio_driver = { | 209 | static struct platform_driver rdc321x_gpio_driver = { |