提交 4b4aa3ab 编写于 作者: G Gigi Joseph 提交者: Greg Kroah-Hartman

st_kim: allow suspend if callback is not registered

Suspend/resume was failing if callbacks were not registered.
As it is ok not to do anything when suspending fix this
so it soen't return an error and allow the system to suspend.
Signed-off-by: NEyal Reizer <eyalr@ti.com>
Signed-off-by: NGigi Joseph <gigi.joseph@ti.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 46d0d333
......@@ -908,7 +908,7 @@ static int kim_suspend(struct platform_device *pdev, pm_message_t state)
if (pdata->suspend)
return pdata->suspend(pdev, state);
return -EOPNOTSUPP;
return 0;
}
static int kim_resume(struct platform_device *pdev)
......@@ -925,7 +925,7 @@ static int kim_resume(struct platform_device *pdev)
if (pdata->resume)
return pdata->resume(pdev);
return -EOPNOTSUPP;
return 0;
}
/**********************************************************************/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册