diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2016-09-14 11:58:17 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-21 15:40:53 -0200 |
commit | 4ecc2d75c0c5fc959d207ef90da19df7771d01c9 (patch) | |
tree | b58c7069666390a24c511a2867401d31b99f2d09 /drivers/media/i2c/smiapp | |
parent | df77542ede76774cfbdc852d0e09b6f800941be1 (diff) | |
download | linux-4ecc2d75c0c5fc959d207ef90da19df7771d01c9.tar.gz linux-4ecc2d75c0c5fc959d207ef90da19df7771d01c9.tar.bz2 linux-4ecc2d75c0c5fc959d207ef90da19df7771d01c9.zip |
[media] smiapp: Set use suspend and resume ops for other functions
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c/smiapp')
-rw-r--r-- | drivers/media/i2c/smiapp/smiapp-core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index 3ea4f12ecee2..88ad4b97ba85 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c @@ -3111,8 +3111,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 = { |