Skip to contentSkip to conversation

misc: isl29020: add missed pm_runtime_disable

PATCH New Chuhong Yuan 1 participant 1 message Nov 18, 2019 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: isl29020: add missed pm_runtime_disable

The driver forgets to call pm_runtime_disable in remove. Add the missed call to fix it.

---
 drivers/misc/isl29020.c | 1 +
 1 file changed, 1 insertion(+)
drivers/misc/isl29020.c +1 -0
index b6125620eb8f..fc5ff2805b94 100644
@@ -173,6 +173,7 @@ static int  isl29020_probe(struct i2c_client *client,
 
 static int isl29020_remove(struct i2c_client *client)
 {
+	pm_runtime_disable(&client->dev);
 	sysfs_remove_group(&client->dev.kobj, &m_als_gr);
 	return 0;
 }
Signature · 1 line
2.24.0