diff options
author | Senthilvadivu Guruswamy <svadivu@ti.com> | 2010-10-08 02:44:33 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-10-22 16:21:07 -0400 |
commit | 41814cfc01b059df33011d929837558c22f3c0e0 (patch) | |
tree | 134ee4f2212c73dd2702c047541bb4ec50777bef /drivers/video | |
parent | 908482fd833016a365e20c26ea28ceeb00743e64 (diff) |
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: Senthilvadivu Guruswamy <svadivu@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 4781421b37f8..6a704f176c22 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) | |||
2198 | goto err0; | 2198 | goto err0; |
2199 | } | 2199 | } |
2200 | 2200 | ||
2201 | /* TODO : Replace cpu check with omap_has_vrfb once HAS_FEATURE | ||
2202 | * available for OMAP2 and OMAP3 | ||
2203 | */ | ||
2204 | if (def_vrfb && !cpu_is_omap24xx() && !cpu_is_omap34xx()) { | ||
2205 | def_vrfb = 0; | ||
2206 | dev_warn(&pdev->dev, "VRFB is not supported on this hardware, " | ||
2207 | "ignoring the module parameter vrfb=y\n"); | ||
2208 | } | ||
2209 | |||
2210 | |||
2201 | mutex_init(&fbdev->mtx); | 2211 | mutex_init(&fbdev->mtx); |
2202 | 2212 | ||
2203 | fbdev->dev = &pdev->dev; | 2213 | fbdev->dev = &pdev->dev; |