misc: isl29020: add missed pm_runtime_disable
authorChuhong Yuan <hslester96@gmail.com>
Mon, 18 Nov 2019 08:09:31 +0000 (16:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 14:06:07 +0000 (15:06 +0100)
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>
drivers/misc/isl29020.c

index b6125620eb8fb31f842b2ec807c810319748c046..fc5ff2805b944ac5a1771be334b7a5a0607f2363 100644 (file)
@@ -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;
 }