summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/cyttsp_i2c.c
diff options
context:
space:
mode:
authorOreste Salerno2016-01-27 22:53:33 +0100
committerDmitry Torokhov2016-01-27 23:32:46 +0100
commite4cf92ba44b86d287bdf1ef6a70417b98c441c7b (patch)
tree5f3d18b5376ec0bdd680d7abaa5da187e829631b /drivers/input/touchscreen/cyttsp_i2c.c
parentInput: gpio-keys - allow disabling individual buttons in DT (diff)
downloadkernel-qcow2-linux-e4cf92ba44b86d287bdf1ef6a70417b98c441c7b.tar.gz
kernel-qcow2-linux-e4cf92ba44b86d287bdf1ef6a70417b98c441c7b.tar.xz
kernel-qcow2-linux-e4cf92ba44b86d287bdf1ef6a70417b98c441c7b.zip
Input: cyttsp - use devres managed resource allocations
Use devm_() functions for allocating memory, input device and IRQ. Signed-off-by: Oreste Salerno <oreste.salerno@tomtom.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/cyttsp_i2c.c')
-rw-r--r--drivers/input/touchscreen/cyttsp_i2c.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/input/touchscreen/cyttsp_i2c.c b/drivers/input/touchscreen/cyttsp_i2c.c
index eee51b3f2e3f..1edfdba96ede 100644
--- a/drivers/input/touchscreen/cyttsp_i2c.c
+++ b/drivers/input/touchscreen/cyttsp_i2c.c
@@ -56,15 +56,6 @@ static int cyttsp_i2c_probe(struct i2c_client *client,
return 0;
}
-static int cyttsp_i2c_remove(struct i2c_client *client)
-{
- struct cyttsp *ts = i2c_get_clientdata(client);
-
- cyttsp_remove(ts);
-
- return 0;
-}
-
static const struct i2c_device_id cyttsp_i2c_id[] = {
{ CY_I2C_NAME, 0 },
{ }
@@ -77,7 +68,6 @@ static struct i2c_driver cyttsp_i2c_driver = {
.pm = &cyttsp_pm_ops,
},
.probe = cyttsp_i2c_probe,
- .remove = cyttsp_i2c_remove,
.id_table = cyttsp_i2c_id,
};