Skip to content

Commit a89d1a8

Browse files
committed
OMAPFB: use omap_vrfb_supported()
Replace cpu_is_*() check with omap_vrfb_supported(). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
1 parent aa1e49a commit a89d1a8

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎drivers/video/omap2/omapfb/omapfb-main.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include <linux/omapfb.h>
3232

3333
#include <video/omapdss.h>
34-
#include <plat/cpu.h>
3534
#include <plat/vram.h>
3635
#include <video/omapvrfb.h>
3736

@@ -2396,10 +2395,7 @@ static int __init omapfb_probe(struct platform_device *pdev)
23962395
goto err0;
23972396
}
23982397

2399-
/* TODO : Replace cpu check with omap_has_vrfb once HAS_FEATURE
2400-
* available for OMAP2 and OMAP3
2401-
*/
2402-
if (def_vrfb && !cpu_is_omap24xx() && !cpu_is_omap34xx()) {
2398+
if (def_vrfb && !omap_vrfb_supported()) {
24032399
def_vrfb = 0;
24042400
dev_warn(&pdev->dev, "VRFB is not supported on this hardware, "
24052401
"ignoring the module parameter vrfb=y\n");

0 commit comments

Comments
 (0)