diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-06 04:58:19 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-09 05:34:43 -0500 |
commit | fb2a99e15ff0d342de4ba58c84a791224a96a01a (patch) | |
tree | 7e7addff62f92f4ffed79162474a93c1ba25c49b /drivers/gpu/drm/gma500/framebuffer.c | |
parent | d9bc3c02e36d844c2d980e65ddda5c7699e073f8 (diff) |
drm: do not set fb_info->pixmap fields
The drm drivers set the fb_info->pixmap fields without setting
fb_info->pixmap.addr. If this is not set the fb core will overwrite
these all fb_info->pixmap fields anyway, so there is not much point
in setting them in the first place.
[airlied: dropped nvidiafb piece - not mine]
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/framebuffer.c')
-rw-r--r-- | drivers/gpu/drm/gma500/framebuffer.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c index 78733b5fd3fb..c1c4dc174fa2 100644 --- a/drivers/gpu/drm/gma500/framebuffer.c +++ b/drivers/gpu/drm/gma500/framebuffer.c | |||
@@ -507,11 +507,7 @@ static int psbfb_create(struct psb_fbdev *fbdev, | |||
507 | info->fix.mmio_start = pci_resource_start(dev->pdev, 0); | 507 | info->fix.mmio_start = pci_resource_start(dev->pdev, 0); |
508 | info->fix.mmio_len = pci_resource_len(dev->pdev, 0); | 508 | info->fix.mmio_len = pci_resource_len(dev->pdev, 0); |
509 | 509 | ||
510 | info->pixmap.size = 64 * 1024; | 510 | /* Use default scratch pixmap (info->pixmap.flags = FB_PIXMAP_SYSTEM) */ |
511 | info->pixmap.buf_align = 8; | ||
512 | info->pixmap.access_align = 32; | ||
513 | info->pixmap.flags = FB_PIXMAP_SYSTEM; | ||
514 | info->pixmap.scan_align = 1; | ||
515 | 511 | ||
516 | dev_info(dev->dev, "allocated %dx%d fb\n", | 512 | dev_info(dev->dev, "allocated %dx%d fb\n", |
517 | psbfb->base.width, psbfb->base.height); | 513 | psbfb->base.width, psbfb->base.height); |