diff options
author | Dave Airlie <airlied@redhat.com> | 2011-11-29 15:02:54 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-11-29 15:02:54 -0500 |
commit | 248dbc2350501e2c7b9f5ceb60c75515d82f4134 (patch) | |
tree | fb12f25d61f71eeba77931b96e58950fc9afd46f /drivers/staging | |
parent | 435ddd926e880f14ea2ae37062b9b45231d7fdf9 (diff) |
drm: move the fb bpp/depth helper into the core.
This is used by nearly everyone including vmwgfx which doesn't generally
use the fb helper.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/gma500/framebuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gma500/framebuffer.c b/drivers/staging/gma500/framebuffer.c index 29f25b5908a5..7aee4d2cd1d4 100644 --- a/drivers/staging/gma500/framebuffer.c +++ b/drivers/staging/gma500/framebuffer.c | |||
@@ -280,7 +280,7 @@ static int psb_framebuffer_init(struct drm_device *dev, | |||
280 | u32 bpp, depth; | 280 | u32 bpp, depth; |
281 | int ret; | 281 | int ret; |
282 | 282 | ||
283 | drm_helper_get_fb_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); | 283 | drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); |
284 | 284 | ||
285 | if (mode_cmd->pitches[0] & 63) | 285 | if (mode_cmd->pitches[0] & 63) |
286 | return -EINVAL; | 286 | return -EINVAL; |