diff options
author | Chuhong Yuan <hslester96@gmail.com> | 2019-11-18 09:09:31 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-14 15:06:07 +0100 |
commit | efb5bea6b88dafdda00aff7c30b2193933114cf2 (patch) | |
tree | af01c3fc16fc6bcb90458d4254c04d38b9db1c59 /drivers/misc | |
parent | misc: genwqe: fix compile warnings (diff) | |
download | linux-efb5bea6b88dafdda00aff7c30b2193933114cf2.tar.xz linux-efb5bea6b88dafdda00aff7c30b2193933114cf2.zip |
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.c | 1 |
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; } |