[PATCH] misc: isl29020: add missed pm_runtime_disable
From: Chuhong Yuan
Date: Mon Nov 18 2019 - 03:09:55 EST
The driver forgets to call pm_runtime_disable in remove.
Add the missed call to fix it.
Signed-off-by: Chuhong Yuan <hslester96@xxxxxxxxx>
---
drivers/misc/isl29020.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/misc/isl29020.c b/drivers/misc/isl29020.c
index b6125620eb8f..fc5ff2805b94 100644
--- a/drivers/misc/isl29020.c
+++ b/drivers/misc/isl29020.c
@@ -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;
}
--
2.24.0