diff options
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-mockup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index cbc823e43151..0abb53038ba8 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c @@ -297,7 +297,7 @@ static int gpio_mockup_probe(struct platform_device *pdev) } rv = devm_irq_sim_init(dev, &chip->irqsim, gc->ngpio); - if (rv) + if (rv < 0) return rv; rv = devm_gpiochip_add_data(dev, &chip->gc, chip); |