public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/3] few omap randconfig fixes for v3.10
@ 2013-04-18 17:54 Tony Lindgren
  2013-04-18 17:54 ` [PATCH 1/3] ARM: OMAP2+: Fix unmet direct dependencies for SERIAL_OMAP Tony Lindgren
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tony Lindgren @ 2013-04-18 17:54 UTC (permalink / raw)
  To: linux-arm-kernel

Few trivial fixes for randconfig found issues.

Regards,

Tony

---

Tony Lindgren (3):
      ARM: OMAP2+: Fix unmet direct dependencies for SERIAL_OMAP
      ARM: OMAP2+: Fix unused variable warning for am3517 crane
      ARM: OMAP2+: Fix is_gpmc_muxed warning for H4


 arch/arm/configs/omap2plus_defconfig    |    2 ++
 arch/arm/mach-omap2/Kconfig             |    2 --
 arch/arm/mach-omap2/board-am3517crane.c |    2 --
 arch/arm/mach-omap2/board-h4.c          |    4 ++--
 4 files changed, 4 insertions(+), 6 deletions(-)

-- 
Signature

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/3] ARM: OMAP2+: Fix unmet direct dependencies for SERIAL_OMAP
  2013-04-18 17:54 [PATCH 0/3] few omap randconfig fixes for v3.10 Tony Lindgren
@ 2013-04-18 17:54 ` Tony Lindgren
  2013-04-18 17:54 ` [PATCH 2/3] ARM: OMAP2+: Fix unused variable warning for am3517 crane Tony Lindgren
  2013-04-18 17:54 ` [PATCH 3/3] ARM: OMAP2+: Fix is_gpmc_muxed warning for H4 Tony Lindgren
  2 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2013-04-18 17:54 UTC (permalink / raw)
  To: linux-arm-kernel

Commit 8a6201b9 (ARM: OMAP2+: Fix unmet direct dependencies for zoom
for 8250 serial) fixed unmet direct dependencies for 8250, but failed
to do the same for omap serial. This can cause the following warning:

warning: (ARCH_OMAP2PLUS_TYPICAL) selects SERIAL_OMAP which has
unmet direct dependencies (TTY && HAS_IOMEM && GENERIC_HARDIRQS &&
ARCH_OMAP2PLUS).

We should not select drivers, they should be selected by the
user. Fix the issue by removing the select and adding them to
omap2plus_defconfig instead.

Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/configs/omap2plus_defconfig |    2 ++
 arch/arm/mach-omap2/Kconfig          |    2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
index 33903ca..51a20a4 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
@@ -137,6 +137,8 @@ CONFIG_SERIAL_8250_DETECT_IRQ=y
 CONFIG_SERIAL_8250_RSA=y
 CONFIG_SERIAL_AMBA_PL011=y
 CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
+CONFIG_SERIAL_OMAP=y
+CONFIG_SERIAL_OMAP_CONSOLE=y
 CONFIG_HW_RANDOM=y
 CONFIG_I2C_CHARDEV=y
 CONFIG_SPI=y
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index a897b44..03b0b27 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -37,8 +37,6 @@ config ARCH_OMAP2PLUS_TYPICAL
 	select NEON if ARCH_OMAP3 || ARCH_OMAP4 || SOC_OMAP5
 	select PM_RUNTIME
 	select REGULATOR
-	select SERIAL_OMAP
-	select SERIAL_OMAP_CONSOLE
 	select TWL4030_CORE if ARCH_OMAP3 || ARCH_OMAP4
 	select TWL4030_POWER if ARCH_OMAP3 || ARCH_OMAP4
 	select VFP

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/3] ARM: OMAP2+: Fix unused variable warning for am3517 crane
  2013-04-18 17:54 [PATCH 0/3] few omap randconfig fixes for v3.10 Tony Lindgren
  2013-04-18 17:54 ` [PATCH 1/3] ARM: OMAP2+: Fix unmet direct dependencies for SERIAL_OMAP Tony Lindgren
@ 2013-04-18 17:54 ` Tony Lindgren
  2013-04-18 17:54 ` [PATCH 3/3] ARM: OMAP2+: Fix is_gpmc_muxed warning for H4 Tony Lindgren
  2 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2013-04-18 17:54 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following by removing the unused variable:

arch/arm/mach-omap2/board-am3517crane.c: In function ?am3517_crane_init?:
arch/arm/mach-omap2/board-am3517crane.c:113: warning: unused variable ?ret?

Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/mach-omap2/board-am3517crane.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c
index fc53911..0d499a1 100644
--- a/arch/arm/mach-omap2/board-am3517crane.c
+++ b/arch/arm/mach-omap2/board-am3517crane.c
@@ -110,8 +110,6 @@ static void __init am3517_crane_i2c_init(void)
 
 static void __init am3517_crane_init(void)
 {
-	int ret;
-
 	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
 	omap_serial_init();
 	omap_sdrc_init(NULL, NULL);

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/3] ARM: OMAP2+: Fix is_gpmc_muxed warning for H4
  2013-04-18 17:54 [PATCH 0/3] few omap randconfig fixes for v3.10 Tony Lindgren
  2013-04-18 17:54 ` [PATCH 1/3] ARM: OMAP2+: Fix unmet direct dependencies for SERIAL_OMAP Tony Lindgren
  2013-04-18 17:54 ` [PATCH 2/3] ARM: OMAP2+: Fix unused variable warning for am3517 crane Tony Lindgren
@ 2013-04-18 17:54 ` Tony Lindgren
  2 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2013-04-18 17:54 UTC (permalink / raw)
  To: linux-arm-kernel

Fix the following error by moving the function to be within
the smc91x related ifdef as that's the only user:

arch/arm/mach-omap2/board-h4.c:238: warning: ?is_gpmc_muxed? defined but not used

Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/mach-omap2/board-h4.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c
index 69c0acf..f745cae 100644
--- a/arch/arm/mach-omap2/board-h4.c
+++ b/arch/arm/mach-omap2/board-h4.c
@@ -229,6 +229,8 @@ static u32 get_sysboot_value(void)
 		 OMAP2_SYSBOOT_1_MASK | OMAP2_SYSBOOT_0_MASK));
 }
 
+#if IS_ENABLED(CONFIG_SMC91X)
+
 /* H4-2420's always used muxed mode, H4-2422's always use non-muxed
  *
  * Note: OMAP-GIT doesn't correctly do is_cpu_omap2422 and is_cpu_omap2423
@@ -246,8 +248,6 @@ static u32 is_gpmc_muxed(void)
 		return 0;
 }
 
-#if IS_ENABLED(CONFIG_SMC91X)
-
 static struct omap_smc91x_platform_data board_smc91x_data = {
 	.cs		= 1,
 	.gpio_irq	= 92,

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-18 17:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-18 17:54 [PATCH 0/3] few omap randconfig fixes for v3.10 Tony Lindgren
2013-04-18 17:54 ` [PATCH 1/3] ARM: OMAP2+: Fix unmet direct dependencies for SERIAL_OMAP Tony Lindgren
2013-04-18 17:54 ` [PATCH 2/3] ARM: OMAP2+: Fix unused variable warning for am3517 crane Tony Lindgren
2013-04-18 17:54 ` [PATCH 3/3] ARM: OMAP2+: Fix is_gpmc_muxed warning for H4 Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox