Date:2010-05-09 01:40:15 (10 years 2 months ago)
Author:Lars C.
Commit:838ee541f5cc83069e6ca88dc700e7717af3c4ea
Message:jz4740-fb: Fix clock error checking in probe.

Files: drivers/video/jz4740_fb.c (1 diff)

Change Details

drivers/video/jz4740_fb.c
633633        goto err_put_ldclk;
634634    }
635635
636    if (IS_ERR(jzfb->ldclk)) {
637        ret = PTR_ERR(jzfb->ldclk);
638        dev_err(&pdev->dev, "Faild to get device clock: %d\n", ret);
639        goto err_put_lpclk;
640    }
641
642    if (IS_ERR(jzfb->lpclk)) {
643        ret = PTR_ERR(jzfb->ldclk);
644        dev_err(&pdev->dev, "Faild to get pixel clock: %d\n", ret);
645        goto err_framebuffer_release;
646    }
647
648
649636    jzfb->base = ioremap(mem->start, resource_size(mem));
650637
651638    if (!jzfb->base) {
652639        dev_err(&pdev->dev, "Failed to ioremap register memory region\n");
653640        ret = -EBUSY;
654        goto err_framebuffer_release;
641        goto err_put_lpclk;
655642    }
656643
657644    platform_set_drvdata(pdev, jzfb);

Archive Download the corresponding diff file



interactive