summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/mxsfb.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c
index 5861ba2c2a20..91269f6eab8d 100644
--- a/drivers/video/mxsfb.c
+++ b/drivers/video/mxsfb.c
@@ -881,12 +881,6 @@ static int mxsfb_probe(struct platform_device *pdev)
881 if (of_id) 881 if (of_id)
882 pdev->id_entry = of_id->data; 882 pdev->id_entry = of_id->data;
883 883
884 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
885 if (!res) {
886 dev_err(&pdev->dev, "Cannot get memory IO resource\n");
887 return -ENODEV;
888 }
889
890 fb_info = framebuffer_alloc(sizeof(struct mxsfb_info), &pdev->dev); 884 fb_info = framebuffer_alloc(sizeof(struct mxsfb_info), &pdev->dev);
891 if (!fb_info) { 885 if (!fb_info) {
892 dev_err(&pdev->dev, "Failed to allocate fbdev\n"); 886 dev_err(&pdev->dev, "Failed to allocate fbdev\n");
@@ -895,6 +889,7 @@ static int mxsfb_probe(struct platform_device *pdev)
895 889
896 host = to_imxfb_host(fb_info); 890 host = to_imxfb_host(fb_info);
897 891
892 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
898 host->base = devm_ioremap_resource(&pdev->dev, res); 893 host->base = devm_ioremap_resource(&pdev->dev, res);
899 if (IS_ERR(host->base)) { 894 if (IS_ERR(host->base)) {
900 ret = PTR_ERR(host->base); 895 ret = PTR_ERR(host->base);