Skip to content

Commit

Permalink
[PATCH] Fix SGI O2 compile error in drivers/video/gbefb.c
Browse files Browse the repository at this point in the history
A sysfs function call uses the wrong parameter, and thus breaks a build on
SGI O2.

  CC      drivers/video/gbefb.o
drivers/video/gbefb.c: In function ‘gbefb_remove’:
drivers/video/gbefb.c:1246: error: ‘dev’ undeclared (first use in this function)
drivers/video/gbefb.c:1246: error: (Each undeclared identifier is reported only once
drivers/video/gbefb.c:1246: error: for each function it appears in.)
make[2]: *** [drivers/video/gbefb.o] Error 1

Signed-off-by: Joshua Kinard <[email protected]>
Signed-off-by: Antonino Daplas <[email protected]>
Signed-off-by: Martin Michlmayr <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Kumba42 authored and Linus Torvalds committed Feb 17, 2006
1 parent 726c14b commit d308643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/gbefb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ static int __devexit gbefb_remove(struct platform_device* p_dev)
(void *)gbe_tiles.cpu, gbe_tiles.dma);
release_mem_region(GBE_BASE, sizeof(struct sgi_gbe));
iounmap(gbe);
gbefb_remove_sysfs(dev);
gbefb_remove_sysfs(&p_dev->dev);
framebuffer_release(info);

return 0;
Expand Down

0 comments on commit d308643

Please sign in to comment.