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>
This commit is contained in:
Dave Airlie
2011-11-29 20:02:54 +00:00
parent 435ddd926e
commit 248dbc2350
8 changed files with 49 additions and 48 deletions

View File

@@ -247,7 +247,7 @@ static int psb_framebuffer_init(struct drm_device *dev,
u32 bpp, depth;
int ret;
drm_helper_get_fb_bpp_depth(mode_cmd->pixel_format, &depth, &bpp);
drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp);
if (mode_cmd->pitches[0] & 63)
return -EINVAL;