Skip to contentSkip to conversation

video: ep93xx_fb: include <linux/io.h> for devm_ioremap()

PATCH In review H Hartley Sweeten 2 participants 2 messages Mar 15, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: ep93xx_fb: include <linux/io.h> for devm_ioremap()

commit be867814 "drivers/video/ep93xx-fb.c: use devm_ functions"

Introduced a build error:

drivers/video/ep93xx-fb.c: In function 'ep93xxfb_probe':
drivers/video/ep93xx-fb.c:532: error: implicit declaration of function 'devm_ioremap' drivers/video/ep93xx-fb.c:533: warning: assignment makes pointer from integer without a cast

Include <linux/io.h> to pickup the declaration of 'devm_ioremap'.

Cc Florian Tobias Schandinat <[email protected]>
Cc Ryan Mallon <[email protected]>
Cc Damien Cassou <[email protected]>
---
 drivers/video/ep93xx-fb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/ep93xx-fb.c +1 -0
index 3f2519d..e06cd5d 100644
@@ -23,6 +23,7 @@
 #include <linux/slab.h>
 #include <linux/clk.h>
 #include <linux/fb.h>
+#include <linux/io.h>
 
 #include <linux/platform_data/video-ep93xx.h>
 
Signature · 1 line
1.8.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · H Hartley Sweeten

commit be867814 "drivers/video/ep93xx-fb.c: use devm_ functions"

Introduced a build error:

drivers/video/ep93xx-fb.c: In function 'ep93xxfb_probe':
drivers/video/ep93xx-fb.c:532: error: implicit declaration of function 'devm_ioremap' drivers/video/ep93xx-fb.c:533: warning: assignment makes pointer from integer without a cast

Quoted 7 lines

Include <linux/io.h> to pickup the declaration of 'devm_ioremap'.

Cc Florian Tobias Schandinat <[email protected]>
Cc Ryan Mallon <[email protected]>
Cc Damien Cassou <[email protected]>
Quoted 16 lines
---
 drivers/video/ep93xx-fb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/ep93xx-fb.c +1 -0
index 3f2519d..e06cd5d 100644
@@ -23,6 +23,7 @@
 #include <linux/slab.h>
 #include <linux/clk.h>
 #include <linux/fb.h>
+#include <linux/io.h>
 
 #include <linux/platform_data/video-ep93xx.h>