diff options
Diffstat (limited to 'drivers/gpio/gpio-pcf857x.c')
-rw-r--r-- | drivers/gpio/gpio-pcf857x.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-pcf857x.c b/drivers/gpio/gpio-pcf857x.c index 82735822bc9d..27b46751ea7e 100644 --- a/drivers/gpio/gpio-pcf857x.c +++ b/drivers/gpio/gpio-pcf857x.c | |||
@@ -262,7 +262,7 @@ static int pcf857x_irq_domain_init(struct pcf857x *gpio, | |||
262 | /* enable real irq */ | 262 | /* enable real irq */ |
263 | status = devm_request_threaded_irq(&client->dev, client->irq, | 263 | status = devm_request_threaded_irq(&client->dev, client->irq, |
264 | NULL, pcf857x_irq, IRQF_ONESHOT | | 264 | NULL, pcf857x_irq, IRQF_ONESHOT | |
265 | IRQF_TRIGGER_FALLING, | 265 | IRQF_TRIGGER_FALLING | IRQF_SHARED, |
266 | dev_name(&client->dev), gpio); | 266 | dev_name(&client->dev), gpio); |
267 | 267 | ||
268 | if (status) | 268 | if (status) |
@@ -319,7 +319,7 @@ static int pcf857x_probe(struct i2c_client *client, | |||
319 | status = pcf857x_irq_domain_init(gpio, client); | 319 | status = pcf857x_irq_domain_init(gpio, client); |
320 | if (status < 0) { | 320 | if (status < 0) { |
321 | dev_err(&client->dev, "irq_domain init failed\n"); | 321 | dev_err(&client->dev, "irq_domain init failed\n"); |
322 | goto fail; | 322 | goto fail_irq_domain; |
323 | } | 323 | } |
324 | } | 324 | } |
325 | 325 | ||
@@ -414,12 +414,13 @@ static int pcf857x_probe(struct i2c_client *client, | |||
414 | return 0; | 414 | return 0; |
415 | 415 | ||
416 | fail: | 416 | fail: |
417 | dev_dbg(&client->dev, "probe error %d for '%s'\n", | ||
418 | status, client->name); | ||
419 | |||
420 | if (client->irq) | 417 | if (client->irq) |
421 | pcf857x_irq_domain_cleanup(gpio); | 418 | pcf857x_irq_domain_cleanup(gpio); |
422 | 419 | ||
420 | fail_irq_domain: | ||
421 | dev_dbg(&client->dev, "probe error %d for '%s'\n", | ||
422 | status, client->name); | ||
423 | |||
423 | return status; | 424 | return status; |
424 | } | 425 | } |
425 | 426 | ||