dect
/
linux-2.6
Archived
13
0
Fork 0

drivers/video/mbx/mbxfb.c: correct ioremap_nocache test

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>
This commit is contained in:
Julia Lawall 2012-04-18 22:07:11 +02:00 committed by Florian Tobias Schandinat
parent 045dfdb5c5
commit 2de06df49f
1 changed files with 1 additions and 1 deletions

View File

@ -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;