Skip to content

Commit

Permalink
drivers/video/mbx/mbxfb.c: correct ioremap_nocache test
Browse files Browse the repository at this point in the history
The test tested not the most recently allocated value but a previously
allocated one.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
  • Loading branch information
Julia Lawall authored and Florian Tobias Schandinat committed Apr 21, 2012
1 parent 045dfdb commit 2de06df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/mbx/mbxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ static int __devinit mbxfb_probe(struct platform_device *dev)

mfbi->fb_virt_addr = ioremap_nocache(mfbi->fb_phys_addr,
res_size(mfbi->fb_req));
if (!mfbi->reg_virt_addr) {
if (!mfbi->fb_virt_addr) {
dev_err(&dev->dev, "failed to ioremap frame buffer\n");
ret = -EINVAL;
goto err4;
Expand Down

0 comments on commit 2de06df

Please sign in to comment.