Skip to content

Commit

Permalink
[ARM] 3232/1: i.MX Frame Buffer undeclared "dev" variable fix
Browse files Browse the repository at this point in the history
Patch from Pavel Pisa

Correction of the code broken by update
whole-tree platform devices update.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Pavel Pisa authored and Russell King committed Jan 7, 2006
1 parent 5b2e98c commit f99c892
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/video/imxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ static int __init imxfb_probe(struct platform_device *pdev)

inf = pdev->dev.platform_data;
if(!inf) {
dev_err(dev,"No platform_data available\n");
dev_err(&pdev->dev,"No platform_data available\n");
return -ENOMEM;
}

Expand All @@ -579,7 +579,7 @@ static int __init imxfb_probe(struct platform_device *pdev)
if (!inf->fixed_screen_cpu) {
ret = imxfb_map_video_memory(info);
if (ret) {
dev_err(dev, "Failed to allocate video RAM: %d\n", ret);
dev_err(&pdev->dev, "Failed to allocate video RAM: %d\n", ret);
ret = -ENOMEM;
goto failed_map;
}
Expand Down Expand Up @@ -608,7 +608,7 @@ static int __init imxfb_probe(struct platform_device *pdev)
imxfb_set_par(info);
ret = register_framebuffer(info);
if (ret < 0) {
dev_err(dev, "failed to register framebuffer\n");
dev_err(&pdev->dev, "failed to register framebuffer\n");
goto failed_register;
}

Expand Down

0 comments on commit f99c892

Please sign in to comment.