summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/omapfb/omapfb-main.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-10-17 11:16:50 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-10-17 11:18:14 +0200
commita89d1a87ad80277939c7fcfb8484f0b110d264ef (patch)
tree58550a5265be7877a0c10da34ae4d72a2dcda978 /drivers/video/omap2/omapfb/omapfb-main.c
parentOMAPDSS: VRFB: add omap_vrfb_supported() (diff)
downloadlinux-a89d1a87ad80277939c7fcfb8484f0b110d264ef.tar.xz
linux-a89d1a87ad80277939c7fcfb8484f0b110d264ef.zip
OMAPFB: use omap_vrfb_supported()
Replace cpu_is_*() check with omap_vrfb_supported(). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/omapfb/omapfb-main.c')
-rw-r--r--drivers/video/omap2/omapfb/omapfb-main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index 5943b3a5d55a..bc225e46fdd2 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -31,7 +31,6 @@
#include <linux/omapfb.h>
#include <video/omapdss.h>
-#include <plat/cpu.h>
#include <plat/vram.h>
#include <video/omapvrfb.h>
@@ -2396,10 +2395,7 @@ static int __init 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()) {
+ if (def_vrfb && !omap_vrfb_supported()) {
def_vrfb = 0;
dev_warn(&pdev->dev, "VRFB is not supported on this hardware, "
"ignoring the module parameter vrfb=y\n");