Message ID | 1286450155-1460-4-git-send-email-svadivu@ti.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Tomi Valkeinen |
Headers | show |
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index bddfca6..fcd9038 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -2198,6 +2198,16 @@ static int omapfb_probe(struct platform_device *pdev) goto err0; } + /* TODO : Replace cpu check with omap_has_vrfb once HAS_FEATURE + * available for OMAP2 and OMAP3 + */ + if (def_vrfb && (!cpu_is_omap24xx()) && (!cpu_is_omap34xx())) { + def_vrfb = 0; + dev_warn(&pdev->dev, "VRFB is not in this device," + "using DMA for rotation\n"); + } + + mutex_init(&fbdev->mtx); fbdev->dev = &pdev->dev;