Skip to contentSkip to conversation

Input: Driver drv260x.c - fix bug of adding wrong device parent

PATCH In review Jingkui Wang 2 participants 2 messages Dec 12, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: Driver drv260x.c - fix bug of adding wrong device parent

Fix the bug of adding wrong parent to the input_dev created by the driver. The bug will be triggered if rmmod is called for this driver module.

---
 drivers/input/misc/drv260x.c | 1 -
 1 file changed, 1 deletion(-)
drivers/input/misc/drv260x.c +0 -1
index 4f448ba..885c140 100644
@@ -565,7 +565,6 @@ static int drv260x_probe(struct i2c_client *client,
 	}
 
 	haptics->input_dev->name = "drv260x:haptics";
-	haptics->input_dev->dev.parent = client->dev.parent;
 	haptics->input_dev->close = drv260x_close;
 	input_set_drvdata(haptics->input_dev, haptics);
 	input_set_capability(haptics->input_dev, EV_FF, FF_RUMBLE);
Signature · 1 line
2.6.6
maintainer
#1 lore raw
Quoted 5 lines · Jingkui Wang

Fix the bug of adding wrong parent to the input_dev created by the driver. The bug will be triggered if rmmod is called for this driver module.

Applied and marked for stable, thank you.

Quoted 19 lines
---
 drivers/input/misc/drv260x.c | 1 -
 1 file changed, 1 deletion(-)
drivers/input/misc/drv260x.c +0 -1
index 4f448ba..885c140 100644
@@ -565,7 +565,6 @@ static int drv260x_probe(struct i2c_client *client,
 	}
 
 	haptics->input_dev->name = "drv260x:haptics";
-	haptics->input_dev->dev.parent = client->dev.parent;
 	haptics->input_dev->close = drv260x_close;
 	input_set_drvdata(haptics->input_dev, haptics);
 	input_set_capability(haptics->input_dev, EV_FF, FF_RUMBLE);
Signature · 1 line
2.6.6
Signature · 1 line
Dmitry