Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a89d1a87 authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

OMAPFB: use omap_vrfb_supported()



Replace cpu_is_*() check with omap_vrfb_supported().

Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent aa1e49a3
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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");