diff options
author | Wei Yongjun | 2019-07-05 17:42:13 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz | 2019-07-05 17:42:13 +0200 |
commit | 732146a3f1dc78ebb0d3c4b1f4dc6ea33cc2c58f (patch) | |
tree | fef3a0f43f2c44a8b0a1f2fa209dc471ebd76d25 /drivers | |
parent | 6eaa79ff688ceb0a5e3ca2e95e8a9a133066829b (diff) |
video: fbdev: imxfb: fix a typo in imxfb_probe()
Fix the return value check which testing the wrong variable
in imxfb_probe().
b.zolnierkie: please note that ->screen_base and ->screen_buffer
are equivalent (they are part of unnamed union in struct fb_info)
Fixes: 739a6439c2bf ("video: fbdev: imxfb: fix sparse warnings about using incorrect types")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/fbdev/imxfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/imxfb.c b/drivers/video/fbdev/imxfb.c index 8d1053e9ef9f..b3286d1fa543 100644 --- a/drivers/video/fbdev/imxfb.c +++ b/drivers/video/fbdev/imxfb.c @@ -976,7 +976,7 @@ static int imxfb_probe(struct platform_device *pdev) fbi->map_size = PAGE_ALIGN(info->fix.smem_len); info->screen_buffer = dma_alloc_wc(&pdev->dev, fbi->map_size, &fbi->map_dma, GFP_KERNEL); - if (!info->screen_base) { + if (!info->screen_buffer) { dev_err(&pdev->dev, "Failed to allocate video RAM: %d\n", ret); ret = -ENOMEM; goto failed_map; |