From: Dmitry Torokhov Date: Tue, 22 Oct 2019 03:50:37 +0000 (-0700) Subject: Input: st1232 - do not set parent device explicitly X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b67b6f598c5d6efe58f202b1f95cd0503583b728;p=linux.git Input: st1232 - do not set parent device explicitly devm_input_allocate_device() already sets parent device for us. Tested-by: Matthias Fend Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c index dfc0c6cb0213a..0aee330731c91 100644 --- a/drivers/input/touchscreen/st1232.c +++ b/drivers/input/touchscreen/st1232.c @@ -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);