diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-27 09:16:12 -0500 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-01-03 11:00:05 -0500 |
commit | e2f55b54556ae6a3a365afead6bc8e46a2013d7f (patch) | |
tree | 4010f569879d629233a5ddd889843e4b590200c2 /drivers/video/s3c-fb.c | |
parent | 5751b23efb1d91db729ac52e78dd9c9e57baf19f (diff) |
video: s3c-fb: Don't keep device runtime active when open
Allow the controller to be runtime suspended when the screen is blanked
by not taking a runtime reference while the device is open. This allows
greater system wide power savings when used with a standard application
layer and ensures that the screen does not blank unless requested.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/s3c-fb.c')
-rw-r--r-- | drivers/video/s3c-fb.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 84cf6319aac2..0c63b69b6340 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c | |||
@@ -1070,30 +1070,8 @@ static int s3c_fb_ioctl(struct fb_info *info, unsigned int cmd, | |||
1070 | return ret; | 1070 | return ret; |
1071 | } | 1071 | } |
1072 | 1072 | ||
1073 | static int s3c_fb_open(struct fb_info *info, int user) | ||
1074 | { | ||
1075 | struct s3c_fb_win *win = info->par; | ||
1076 | struct s3c_fb *sfb = win->parent; | ||
1077 | |||
1078 | pm_runtime_get_sync(sfb->dev); | ||
1079 | |||
1080 | return 0; | ||
1081 | } | ||
1082 | |||
1083 | static int s3c_fb_release(struct fb_info *info, int user) | ||
1084 | { | ||
1085 | struct s3c_fb_win *win = info->par; | ||
1086 | struct s3c_fb *sfb = win->parent; | ||
1087 | |||
1088 | pm_runtime_put_sync(sfb->dev); | ||
1089 | |||
1090 | return 0; | ||
1091 | } | ||
1092 | |||
1093 | static struct fb_ops s3c_fb_ops = { | 1073 | static struct fb_ops s3c_fb_ops = { |
1094 | .owner = THIS_MODULE, | 1074 | .owner = THIS_MODULE, |
1095 | .fb_open = s3c_fb_open, | ||
1096 | .fb_release = s3c_fb_release, | ||
1097 | .fb_check_var = s3c_fb_check_var, | 1075 | .fb_check_var = s3c_fb_check_var, |
1098 | .fb_set_par = s3c_fb_set_par, | 1076 | .fb_set_par = s3c_fb_set_par, |
1099 | .fb_blank = s3c_fb_blank, | 1077 | .fb_blank = s3c_fb_blank, |