提交 41814cfc 编写于 作者: S Senthilvadivu Guruswamy 提交者: Tomi Valkeinen

OMAP: DSS2: OMAPFB: Allow usage of def_vrfb only for omap2,3

VRFB is supported only on OMAP2 and OMAP3 platforms. If VRFB rotation is
not supported by the hardware and the user requests VRFB rotation,
print a warning and ignore the request from the user.
Signed-off-by: NSenthilvadivu Guruswamy <svadivu@ti.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@nokia.com>
上级 908482fd
...@@ -2198,6 +2198,16 @@ static int omapfb_probe(struct platform_device *pdev) ...@@ -2198,6 +2198,16 @@ static int omapfb_probe(struct platform_device *pdev)
goto err0; 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 supported on this hardware, "
"ignoring the module parameter vrfb=y\n");
}
mutex_init(&fbdev->mtx); mutex_init(&fbdev->mtx);
fbdev->dev = &pdev->dev; fbdev->dev = &pdev->dev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册