Skip to content

Commit

Permalink
gbefb: fix compile error
Browse files Browse the repository at this point in the history
The patch "drivers/video/gbefb.c: use devm_ functions" caused a
compile error.

drivers/video/gbefb.c:1159:16: error: implicit declaration of function
'devm_ioremap' [-Werror=implicit-function-declaration]
drivers/video/gbefb.c:1179:3: error: implicit declaration of function
'devm_ioremap_nocache' [-Werror=implicit-function-declaration]

Fix it by including linux/io.h which defines those functions.

Reported-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Florian Tobias Schandinat <[email protected]>
Cc: Damien Cassou <[email protected]>
  • Loading branch information
schandinat committed Oct 11, 2012
1 parent 0febd3b commit cd9d6f1
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 @@ -20,6 +20,7 @@
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/io.h>

#ifdef CONFIG_X86
#include <asm/mtrr.h>
Expand All @@ -28,7 +29,6 @@
#include <asm/addrspace.h>
#endif
#include <asm/byteorder.h>
#include <asm/io.h>
#include <asm/tlbflush.h>

#include <video/gbe.h>
Expand Down

0 comments on commit cd9d6f1

Please sign in to comment.