diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2011-11-04 00:44:38 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2011-11-15 00:58:45 -0500 |
commit | aa6b2b6cd43e4a23c2a220382a8b385b087d8bca (patch) | |
tree | cde7131bbf69a1adb2cc45db7ed61fbc6120e8c2 /drivers/gpu/drm/exynos | |
parent | 84b46990cb2caf8efe20d5626e1d7e2e40bab832 (diff) |
drm/exynos: removed meaningless parameter from fbdev update
drm_framebuffer already has width and height so they are meaningless as
parameters when updating fb_info.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c index 74092a81c180..0effd77d569b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c | |||
@@ -85,15 +85,13 @@ static struct fb_ops exynos_drm_fb_ops = { | |||
85 | }; | 85 | }; |
86 | 86 | ||
87 | static int exynos_drm_fbdev_update(struct drm_fb_helper *helper, | 87 | static int exynos_drm_fbdev_update(struct drm_fb_helper *helper, |
88 | struct drm_framebuffer *fb, | 88 | struct drm_framebuffer *fb) |
89 | unsigned int fb_width, | ||
90 | unsigned int fb_height) | ||
91 | { | 89 | { |
92 | struct fb_info *fbi = helper->fbdev; | 90 | struct fb_info *fbi = helper->fbdev; |
93 | struct drm_device *dev = helper->dev; | 91 | struct drm_device *dev = helper->dev; |
94 | struct exynos_drm_fbdev *exynos_fb = to_exynos_fbdev(helper); | 92 | struct exynos_drm_fbdev *exynos_fb = to_exynos_fbdev(helper); |
95 | struct exynos_drm_buf_entry *entry; | 93 | struct exynos_drm_buf_entry *entry; |
96 | unsigned int size = fb_width * fb_height * (fb->bits_per_pixel >> 3); | 94 | unsigned int size = fb->width * fb->height * (fb->bits_per_pixel >> 3); |
97 | unsigned long offset; | 95 | unsigned long offset; |
98 | 96 | ||
99 | DRM_DEBUG_KMS("%s\n", __FILE__); | 97 | DRM_DEBUG_KMS("%s\n", __FILE__); |
@@ -101,7 +99,7 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper, | |||
101 | exynos_fb->fb = fb; | 99 | exynos_fb->fb = fb; |
102 | 100 | ||
103 | drm_fb_helper_fill_fix(fbi, fb->pitch, fb->depth); | 101 | drm_fb_helper_fill_fix(fbi, fb->pitch, fb->depth); |
104 | drm_fb_helper_fill_var(fbi, helper, fb_width, fb_height); | 102 | drm_fb_helper_fill_var(fbi, helper, fb->width, fb->height); |
105 | 103 | ||
106 | entry = exynos_drm_fb_get_buf(fb); | 104 | entry = exynos_drm_fb_get_buf(fb); |
107 | if (!entry) { | 105 | if (!entry) { |
@@ -171,8 +169,7 @@ static int exynos_drm_fbdev_create(struct drm_fb_helper *helper, | |||
171 | goto out; | 169 | goto out; |
172 | } | 170 | } |
173 | 171 | ||
174 | ret = exynos_drm_fbdev_update(helper, helper->fb, sizes->fb_width, | 172 | ret = exynos_drm_fbdev_update(helper, helper->fb); |
175 | sizes->fb_height); | ||
176 | if (ret < 0) | 173 | if (ret < 0) |
177 | fb_dealloc_cmap(&fbi->cmap); | 174 | fb_dealloc_cmap(&fbi->cmap); |
178 | 175 | ||
@@ -235,8 +232,7 @@ static int exynos_drm_fbdev_recreate(struct drm_fb_helper *helper, | |||
235 | } | 232 | } |
236 | 233 | ||
237 | helper->fb = exynos_fbdev->fb; | 234 | helper->fb = exynos_fbdev->fb; |
238 | return exynos_drm_fbdev_update(helper, helper->fb, sizes->fb_width, | 235 | return exynos_drm_fbdev_update(helper, helper->fb); |
239 | sizes->fb_height); | ||
240 | } | 236 | } |
241 | 237 | ||
242 | static int exynos_drm_fbdev_probe(struct drm_fb_helper *helper, | 238 | static int exynos_drm_fbdev_probe(struct drm_fb_helper *helper, |