.. | .. |
---|
1219 | 1219 | if (IS_ERR_OR_NULL(ts->reset_gpio)) |
---|
1220 | 1220 | return 0; |
---|
1221 | 1221 | |
---|
1222 | | - gpiod_set_value_cansleep(ts->reset_gpio, 1); |
---|
1223 | | - |
---|
1224 | 1222 | error = regulator_enable(ts->vcc33); |
---|
1225 | 1223 | if (error) { |
---|
1226 | 1224 | dev_err(&ts->client->dev, |
---|
1227 | 1225 | "failed to enable vcc33 regulator: %d\n", |
---|
1228 | 1226 | error); |
---|
1229 | | - goto release_reset_gpio; |
---|
| 1227 | + return error; |
---|
1230 | 1228 | } |
---|
1231 | 1229 | |
---|
1232 | 1230 | error = regulator_enable(ts->vccio); |
---|
.. | .. |
---|
1235 | 1233 | "failed to enable vccio regulator: %d\n", |
---|
1236 | 1234 | error); |
---|
1237 | 1235 | regulator_disable(ts->vcc33); |
---|
1238 | | - goto release_reset_gpio; |
---|
| 1236 | + return error; |
---|
1239 | 1237 | } |
---|
1240 | 1238 | |
---|
1241 | 1239 | /* |
---|
.. | .. |
---|
1244 | 1242 | */ |
---|
1245 | 1243 | udelay(ELAN_POWERON_DELAY_USEC); |
---|
1246 | 1244 | |
---|
1247 | | -release_reset_gpio: |
---|
1248 | 1245 | gpiod_set_value_cansleep(ts->reset_gpio, 0); |
---|
1249 | 1246 | if (error) |
---|
1250 | 1247 | return error; |
---|
.. | .. |
---|
1352 | 1349 | return error; |
---|
1353 | 1350 | } |
---|
1354 | 1351 | |
---|
1355 | | - ts->reset_gpio = devm_gpiod_get(&client->dev, "reset", GPIOD_OUT_LOW); |
---|
| 1352 | + ts->reset_gpio = devm_gpiod_get(&client->dev, "reset", GPIOD_OUT_HIGH); |
---|
1356 | 1353 | if (IS_ERR(ts->reset_gpio)) { |
---|
1357 | 1354 | error = PTR_ERR(ts->reset_gpio); |
---|
1358 | 1355 | |
---|