Skip to content
Snippets Groups Projects
Commit 44f0213d authored by Jonas Höppner's avatar Jonas Höppner
Browse files

touch:scx0500633:Add missing cleanup code on driver unload

parent aa6fb3dc
No related branches found
No related tags found
1 merge request!96touch:scx0500633:Add missing cleanup code on driver unload
Pipeline #17060 canceled with stages
in 49 minutes and 40 seconds
......@@ -786,6 +786,8 @@ static int scx0500633_i2c_ts_remove (struct i2c_client *client)
input_unregister_device (tsdata->input);
sysfs_remove_group(&client->dev.kobj, &scx0500633_i2c_group);
touch_gpio_free(tsdata->gpios);
if(tsdata->regulator && !IS_ERR(tsdata->regulator))
regulator_disable(tsdata->regulator);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment