Skip to contentSkip to conversation

video: bf54x-lq043fb: fix build error

PATCH Superseded Steven Miao 3 participants 3 messages Apr 12, 2014 – Apr 15, 2014 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: bf54x-lq043fb: fix build error

From: Steven Miao <[email protected]>

should include linux/gpio.h

---
 drivers/video/bf54x-lq043fb.c |    1 +
 1 file changed, 1 insertion(+)
drivers/video/bf54x-lq043fb.c +1 -0
index 42b8f9d..d2b54f1 100644
@@ -49,6 +49,7 @@
 #include <linux/spinlock.h>
 #include <linux/dma-mapping.h>
 #include <linux/platform_device.h>
+#include <linux/gpio.h>
 
 #include <asm/blackfin.h>
 #include <asm/irq.h>
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 14 lines · Steven Miao

From: Steven Miao <[email protected]>

should include linux/gpio.h

---
 drivers/video/bf54x-lq043fb.c |    1 +
 1 file changed, 1 insertion(+)
drivers/video/bf54x-lq043fb.c +0 -0
index 42b8f9d..d2b54f1 100644

drivers/video/bf54x-lq043fb.c line 52

Quoted 4 lines
drivers/video/bf54x-lq043fb.c +1 -0
@@ -49,6 +49,7 @@
 #include <linux/spinlock.h>
 #include <linux/dma-mapping.h>
 #include <linux/platform_device.h>
+#include <linux/gpio.h>

The driver includes <asm/gpio.h>. I think that should be removed, and <linux/gpio.h> should be used.

Can you also remove the asm/gpio.h in your patch, and see if it compiles fine?

Tomi

#2 lore raw

Hi Tomi,

Quoted 10 lines · Tomi Valkeinen
Quoted 9 lines · Steven Miao

From: Steven Miao <[email protected]>

should include linux/gpio.h

---
 drivers/video/bf54x-lq043fb.c |    1 +
 1 file changed, 1 insertion(+)
Quoted 12 lines

drivers/video/bf54x-lq043fb.c line 52

Quoted 9 lines
drivers/video/bf54x-lq043fb.c +1 -0
index 42b8f9d..d2b54f1 100644
@@ -49,6 +49,7 @@
 #include <linux/spinlock.h>
 #include <linux/dma-mapping.h>
 #include <linux/platform_device.h>
+#include <linux/gpio.h>

The driver includes <asm/gpio.h>. I think that should be removed, and <linux/gpio.h> should be used.

Yes, it should be removed.

Quoted 3 lines

Can you also remove the asm/gpio.h in your patch, and see if it compiles fine?

I have tested it, it's fine. I'll resend the patch.

Quoted 4 lines

Tomi

-steven