Input: st1232 - do not set parent device explicitly
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 22 Oct 2019 03:50:37 +0000 (20:50 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 29 Oct 2019 04:03:55 +0000 (21:03 -0700)
devm_input_allocate_device() already sets parent device for us.

Tested-by: Matthias Fend <Matthias.Fend@wolfvision.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/st1232.c

index dfc0c6c..0aee330 100644 (file)
@@ -239,7 +239,6 @@ static int st1232_ts_probe(struct i2c_client *client,
 
        input_dev->name = "st1232-touchscreen";
        input_dev->id.bustype = BUS_I2C;
-       input_dev->dev.parent = &client->dev;
 
        __set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
        __set_bit(EV_SYN, input_dev->evbit);