Skip to contentSkip to conversation

gta02: fix includes

PATCH Ben Dooks 2 participants 2 messages Oct 12, 2009

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

The gta02 build is missing <mach/regs-gpio.h> and is also using the incorrect <asm/io.h> header (it should be <linux/io.h>). Fix these two problems.

---
 sound/soc/s3c24xx/neo1973_gta02_wm8753.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
sound/soc/s3c24xx/neo1973_gta02_wm8753.c +3 -1
Index: b/sound/soc/s3c24xx/neo1973_gta02_wm8753.c
===================================================================
@@ -19,6 +19,8 @@
 #include <linux/interrupt.h>
 #include <linux/platform_device.h>
 #include <linux/gpio.h>
+#include <linux/io.h>
+
 #include <sound/core.h>
 #include <sound/pcm.h>
 #include <sound/soc.h>
@@ -29,7 +31,7 @@
 #include <plat/regs-iis.h>
 
 #include <mach/regs-clock.h>
-#include <asm/io.h>
+#include <mach/regs-gpioj.h>
 #include <mach/gta02.h>
 #include "../codecs/wm8753.h"
 #include "s3c24xx-pcm.h"
Signature · 3 lines
Ben ([email protected], http://www.fluff.org/)

  'a smiley only costs 4 bytes'
#1 lore raw
Quoted 8 lines

Ben Dooks wrote:
The gta02 build is missing <mach/regs-gpio.h> and is also using the incorrect <asm/io.h> header (it should be <linux/io.h>). Fix these two problems.

Quoted 7 lines

---
sound/soc/s3c24xx/neo1973_gta02_wm8753.c | 4 +++-

1 file changed, 3 insertions(+), 1 deletion(-)

Index: b/sound/soc/s3c24xx/neo1973_gta02_wm8753.c
===================================================================
--- a/sound/soc/s3c24xx/neo1973_gta02_wm8753.c 2009-10-10

22:55:53.000000000 +0100

Quoted 1 line

+++ b/sound/soc/s3c24xx/neo1973_gta02_wm8753.c 2009-10-10

22:58:31.000000000 +0100

Quoted 10 lines
sound/soc/s3c24xx/neo1973_gta02_wm8753.c +2 -0
@@ -19,6 +19,8 @@
 #include <linux/interrupt.h>
 #include <linux/platform_device.h>
 #include <linux/gpio.h>
+#include <linux/io.h>
+
 #include <sound/core.h>
 #include <sound/pcm.h>
 #include <sound/soc.h>

sound/soc/s3c24xx/neo1973_gta02_wm8753.c line 34

Quoted 5 lines
sound/soc/s3c24xx/neo1973_gta02_wm8753.c +1 -1
@@ -29,7 +31,7 @@
 #include <plat/regs-iis.h>
 
 #include <mach/regs-clock.h>
-#include <asm/io.h>
+#include <mach/regs-gpioj.h>

This file is not using any of the symbols from regs-gpioh.h directly. It only uses GTA02_GPIO_{HP_IN,AMP_SHUT} from gta02.h which are defined as S3C2440_GPJX.
So the include of regs-gpioj.h should rather go into gta02.h than here.

- Lars