fb-defio: Inhibit VM_IO flag to be set on vmalloc-ed framebuffers.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 3 Dec 2009 15:31:58 +0000 (10:31 -0500)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 4 Dec 2009 01:30:42 +0000 (17:30 -0800)
The framebuffers (screenbase) these drivers present are actually
vmalloc-ed pages. There is no need for them to have the VM_IO flag set.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Jaya Kumar <jayakumar.lkml@gmail.com>
drivers/video/broadsheetfb.c
drivers/video/hecubafb.c
drivers/video/metronomefb.c

index 509cb92e873105b8874ea08cdacca171636c4651..df9ccb901d86f442d7359294ab01b55486f4be54 100644 (file)
@@ -470,7 +470,7 @@ static int __devinit broadsheetfb_probe(struct platform_device *dev)
        par->read_reg = broadsheet_read_reg;
        init_waitqueue_head(&par->waitq);
 
-       info->flags = FBINFO_FLAG_DEFAULT;
+       info->flags = FBINFO_FLAG_DEFAULT | FBINFO_VIRTFB;
 
        info->fbdefio = &broadsheetfb_defio;
        fb_deferred_io_init(info);
index 0b4bffbe67c812ff71fcc385efdbfc8acde82af4..f9d77adf035d92a027ef29a2d376eb2e237b23a9 100644 (file)
@@ -253,7 +253,7 @@ static int __devinit hecubafb_probe(struct platform_device *dev)
        par->send_command = apollo_send_command;
        par->send_data = apollo_send_data;
 
-       info->flags = FBINFO_FLAG_DEFAULT;
+       info->flags = FBINFO_FLAG_DEFAULT | FBINFO_VIRTFB;
 
        info->fbdefio = &hecubafb_defio;
        fb_deferred_io_init(info);
index df1f757a6161cde2f7d189be4501567af96fd6f2..661bfd20d1943e805dd6aa2865d4c2f361a38eb1 100644 (file)
@@ -700,7 +700,7 @@ static int __devinit metronomefb_probe(struct platform_device *dev)
        if (retval < 0)
                goto err_free_irq;
 
-       info->flags = FBINFO_FLAG_DEFAULT;
+       info->flags = FBINFO_FLAG_DEFAULT | FBINFO_VIRTFB;
 
        info->fbdefio = &metronomefb_defio;
        fb_deferred_io_init(info);