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>
This commit is contained in:
parent
8edf4cd193
commit
efb5bea6b8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue