Message ID | 1473938961-16067-4-git-send-email-sakari.ailus@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi, On Thu, Sep 15, 2016 at 02:29:19PM +0300, Sakari Ailus wrote: > Use the suspend and resume ops for freeze, thaw, poweroff and restore > callbacks as well. > > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-By: Sebastian Reichel <sre@kernel.org> -- Sebastian
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index fe1f738..e1d1459 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c @@ -3090,8 +3090,7 @@ static const struct i2c_device_id smiapp_id_table[] = { MODULE_DEVICE_TABLE(i2c, smiapp_id_table); static const struct dev_pm_ops smiapp_pm_ops = { - .suspend = smiapp_suspend, - .resume = smiapp_resume, + SET_SYSTEM_SLEEP_PM_OPS(smiapp_suspend, smiapp_resume) }; static struct i2c_driver smiapp_i2c_driver = {
Use the suspend and resume ops for freeze, thaw, poweroff and restore callbacks as well. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> --- drivers/media/i2c/smiapp/smiapp-core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)