diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/tegra/dc/dc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c index d4c3f8bc9a49..d8e731999b88 100644 --- a/drivers/video/tegra/dc/dc.c +++ b/drivers/video/tegra/dc/dc.c @@ -1703,9 +1703,18 @@ static int tegra_dc_probe(struct nvhost_device *ndev, struct resource *fb_mem = NULL; int ret = 0; void __iomem *base; + char *option = NULL; + char driver[10]; int irq; int i; + /* try to use kernel cmd line specified mode */ + sprintf(driver, "tegrafb%d", ndev->id); + fb_get_options(driver, &option); + + if (option != NULL && !strcmp(option, "off")) + return -ENOENT; + if (!ndev->dev.platform_data) { dev_err(&ndev->dev, "no platform data\n"); return -ENOENT; |