Commit 67d411dd authored by Christopher Harvey's avatar Christopher Harvey Committed by Dave Airlie

drm/mgag200: Remove pointless call to drm_fb_get_bpp_depth

Signed-off-by: default avatarChristopher Harvey <charvey@matrox.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 36d9b154
...@@ -105,12 +105,9 @@ static int mgag200fb_create_object(struct mga_fbdev *afbdev, ...@@ -105,12 +105,9 @@ static int mgag200fb_create_object(struct mga_fbdev *afbdev,
struct drm_gem_object **gobj_p) struct drm_gem_object **gobj_p)
{ {
struct drm_device *dev = afbdev->helper.dev; struct drm_device *dev = afbdev->helper.dev;
u32 bpp, depth;
u32 size; u32 size;
struct drm_gem_object *gobj; struct drm_gem_object *gobj;
int ret = 0; int ret = 0;
drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp);
size = mode_cmd->pitches[0] * mode_cmd->height; size = mode_cmd->pitches[0] * mode_cmd->height;
ret = mgag200_gem_create(dev, size, true, &gobj); ret = mgag200_gem_create(dev, size, true, &gobj);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment