mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -173,6 +173,7 @@ static int isl29020_probe(struct i2c_client *client,
|
||||||
|
|
||||||
static int isl29020_remove(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);
|
sysfs_remove_group(&client->dev.kobj, &m_als_gr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue