aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/efifb.c
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2010-05-16 11:27:03 -0400
committerDave Airlie <airlied@redhat.com>2010-05-18 02:19:27 -0400
commit1471ca9aa71cd37b6a7476bb6f06a3a8622ea1bd (patch)
tree3bf5ef9fea79b0b92220cfcc3842db7afb5cd63d /drivers/video/efifb.c
parent3da1f33e79a5922c1a31077e7b33aba1cec19b94 (diff)
fbdev: allow passing more than one aperture for handoff
It removes a hack from nouveau code which had to detect which region to pass to kick vesafb/efifb. Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Cc: Eric Anholt <eric@anholt.net> Cc: Ben Skeggs <bskeggs@redhat.com> Cc: Thomas Hellstrom <thellstrom@vmware.com> Cc: Dave Airlie <airlied@redhat.com> Cc: Peter Jones <pjones@redhat.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/video/efifb.c')
-rw-r--r--drivers/video/efifb.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c
index 581d2dbf675a..3b986567111a 100644
--- a/drivers/video/efifb.c
+++ b/drivers/video/efifb.c
@@ -165,7 +165,7 @@ static void efifb_destroy(struct fb_info *info)
165{ 165{
166 if (info->screen_base) 166 if (info->screen_base)
167 iounmap(info->screen_base); 167 iounmap(info->screen_base);
168 release_mem_region(info->aperture_base, info->aperture_size); 168 release_mem_region(info->apertures->ranges[0].base, info->apertures->ranges[0].size);
169 framebuffer_release(info); 169 framebuffer_release(info);
170} 170}
171 171
@@ -289,8 +289,13 @@ static int __devinit efifb_probe(struct platform_device *dev)
289 info->pseudo_palette = info->par; 289 info->pseudo_palette = info->par;
290 info->par = NULL; 290 info->par = NULL;
291 291
292 info->aperture_base = efifb_fix.smem_start; 292 info->apertures = alloc_apertures(1);
293 info->aperture_size = size_remap; 293 if (!info->apertures) {
294 err = -ENOMEM;
295 goto err_release_fb;
296 }
297 info->apertures->ranges[0].base = efifb_fix.smem_start;
298 info->apertures->ranges[0].size = size_remap;
294 299
295 info->screen_base = ioremap(efifb_fix.smem_start, efifb_fix.smem_len); 300 info->screen_base = ioremap(efifb_fix.smem_start, efifb_fix.smem_len);
296 if (!info->screen_base) { 301 if (!info->screen_base) {