summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2019-11-18 16:09:31 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-14 15:06:07 +0100
commitefb5bea6b88dafdda00aff7c30b2193933114cf2 (patch)
treeaf01c3fc16fc6bcb90458d4254c04d38b9db1c59 /drivers/misc
parent8edf4cd193067ac5e03fd9580f1affbb6a3f729b (diff)
misc: isl29020: add missed pm_runtime_disable
The driver forgets to call pm_runtime_disable in remove. Add the missed call to fix it. Signed-off-by: Chuhong Yuan <hslester96@gmail.com> Link: https://lore.kernel.org/r/20191118080931.30749-1-hslester96@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/isl29020.c1
1 files changed, 1 insertions, 0 deletions
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;
}