mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 23:24:11 +08:00
[PATCH] w100fb: platform device conversion fixup
Fix an error in w100fb after the platform device conversion. Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
ae7642bb05
commit
afdd3b3c8e
@ -514,7 +514,7 @@ int __init w100fb_probe(struct platform_device *pdev)
|
|||||||
if (remapped_fbuf == NULL)
|
if (remapped_fbuf == NULL)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
info=framebuffer_alloc(sizeof(struct w100fb_par), dev);
|
info=framebuffer_alloc(sizeof(struct w100fb_par), &pdev->dev);
|
||||||
if (!info) {
|
if (!info) {
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user