diff options
Diffstat (limited to 'drivers/leds/leds-pca9532.c')
-rw-r--r-- | drivers/leds/leds-pca9532.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c index 4a0e786b7832..5a6363d161a2 100644 --- a/drivers/leds/leds-pca9532.c +++ b/drivers/leds/leds-pca9532.c | |||
@@ -319,14 +319,8 @@ static int pca9532_destroy_devices(struct pca9532_data *data, int n_devs) | |||
319 | } | 319 | } |
320 | 320 | ||
321 | #ifdef CONFIG_LEDS_PCA9532_GPIO | 321 | #ifdef CONFIG_LEDS_PCA9532_GPIO |
322 | if (data->gpio.dev) { | 322 | if (data->gpio.dev) |
323 | int err = gpiochip_remove(&data->gpio); | 323 | gpiochip_remove(&data->gpio); |
324 | if (err) { | ||
325 | dev_err(&data->client->dev, "%s failed, %d\n", | ||
326 | "gpiochip_remove()", err); | ||
327 | return err; | ||
328 | } | ||
329 | } | ||
330 | #endif | 324 | #endif |
331 | 325 | ||
332 | return 0; | 326 | return 0; |