We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b470cef commit beb3fb4Copy full SHA for beb3fb4
drivers/gpio/gpio-stmpe.c
@@ -500,12 +500,6 @@ static int stmpe_gpio_probe(struct platform_device *pdev)
500
if (ret)
501
goto out_free;
502
503
- ret = gpiochip_add_data(&stmpe_gpio->chip, stmpe_gpio);
504
- if (ret) {
505
- dev_err(&pdev->dev, "unable to add gpiochip: %d\n", ret);
506
- goto out_disable;
507
- }
508
-
509
if (irq > 0) {
510
struct gpio_irq_chip *girq;
511
@@ -528,6 +522,12 @@ static int stmpe_gpio_probe(struct platform_device *pdev)
528
522
girq->threaded = true;
529
523
}
530
524
525
+ ret = gpiochip_add_data(&stmpe_gpio->chip, stmpe_gpio);
526
+ if (ret) {
527
+ dev_err(&pdev->dev, "unable to add gpiochip: %d\n", ret);
+ goto out_disable;
+ }
+
531
platform_set_drvdata(pdev, stmpe_gpio);
532
533
return 0;
0 commit comments