Input: ar1021 - fix typo in preprocessor macro name
[sfrench/cifs-2.6.git] / drivers / input / touchscreen / auo-pixcir-ts.c
index 8e48fbda487a3c3beae5f4513444e34e693da198..8e9f3b7b81805bf3605462e9ef3241647d0c1b4c 100644 (file)
@@ -602,9 +602,8 @@ static int auo_pixcir_probe(struct i2c_client *client,
                return error;
        }
 
-       error = devm_add_action(&client->dev, auo_pixcir_reset, ts);
+       error = devm_add_action_or_reset(&client->dev, auo_pixcir_reset, ts);
        if (error) {
-               auo_pixcir_reset(ts);
                dev_err(&client->dev, "failed to register reset action, %d\n",
                        error);
                return error;