~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/video/metronomefb.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
628
628
        /* we need to add a spare page because our csum caching scheme walks
629
629
         * to the end of the page */
630
630
        videomemorysize = PAGE_SIZE + (fw * fh);
631
 
        videomemory = vmalloc(videomemorysize);
 
631
        videomemory = vzalloc(videomemorysize);
632
632
        if (!videomemory)
633
633
                goto err_fb_rel;
634
634
 
635
 
        memset(videomemory, 0, videomemorysize);
636
 
 
637
635
        info->screen_base = (char __force __iomem *)videomemory;
638
636
        info->fbops = &metronomefb_ops;
639
637
 
765
763
 
766
764
static struct platform_driver metronomefb_driver = {
767
765
        .probe  = metronomefb_probe,
768
 
        .remove = metronomefb_remove,
 
766
        .remove = __devexit_p(metronomefb_remove),
769
767
        .driver = {
770
768
                .owner  = THIS_MODULE,
771
769
                .name   = "metronomefb",