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 925baf3 commit 6f4deb1Copy full SHA for 6f4deb1
drivers/gpio/gpio-max730x.c
@@ -192,6 +192,10 @@ int __max730x_probe(struct max7301 *ts)
192
ts->chip.parent = dev;
193
ts->chip.owner = THIS_MODULE;
194
195
+ ret = gpiochip_add_data(&ts->chip, ts);
196
+ if (ret)
197
+ goto exit_destroy;
198
+
199
/*
200
* initialize pullups according to platform data and cache the
201
* register values for later use.
@@ -213,10 +217,6 @@ int __max730x_probe(struct max7301 *ts)
213
217
}
214
218
215
219
216
- ret = gpiochip_add_data(&ts->chip, ts);
- if (ret)
- goto exit_destroy;
-
220
return ret;
221
222
exit_destroy:
0 commit comments