Skip to contentSkip to conversation

arm/tegra: Fix section mismatch errors in pinmux

PATCH New Stephen Warren 2 participants 4 messages Dec 19, 2011 – Dec 20, 2011

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

cover arm/tegra: Fix section mismatch errors in pinmux

Patches in Tegra's for-3.3/soc branch introduce some section mismatch errors when building with CONFIG_DEBUG_SECTION_MISMATCH=y. This series fixes them. I patched each file separately in case you want to squash these into the original patches.

tegra20: 6996e08 arm/tegra: prepare pinmux code for multiple tegra variants
tegra30: 241682c arm/tegra: pinmux tables and definitions for tegra30

Stephen Warren (2):
arm/tegra: Fix section mismatch errors in tegra20 pinmux arm/tegra: Fix section mismatch errors in tegra30 pinmux

 arch/arm/mach-tegra/pinmux-tegra20-tables.c |    2 +-
 arch/arm/mach-tegra/pinmux-tegra30-tables.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
#1 lore raw

PATCH 1/2 arm/tegra: Fix section mismatch errors in tegra20 pinmux

tegra20_pinmux_init() is called from the pinmux's probe() function, and hence should be __devinit not __init.

---
 arch/arm/mach-tegra/pinmux-tegra20-tables.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-tegra/pinmux-tegra20-tables.c +1 -1
index 0fe5335..734add1 100644
@@ -232,7 +232,7 @@ static const struct tegra_pingroup_desc tegra_soc_pingroups[TEGRA_MAX_PINGROUP]
 	PINGROUP(XM2D,  DDR,   RSVD,      RSVD,      RSVD,      RSVD,          RSVD,      -1,   -1, -1,   -1, 0xA8, 28),
 };
 
-void __init tegra20_pinmux_init(const struct tegra_pingroup_desc **pg,
+void __devinit tegra20_pinmux_init(const struct tegra_pingroup_desc **pg,
 		int *pg_max, const struct tegra_drive_pingroup_desc **pgdrive,
 		int *pgdrive_max)
 {
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 2/2 arm/tegra: Fix section mismatch errors in tegra30 pinmux

In reply to Stephen Warren

tegra30_pinmux_init() is called from the pinmux's probe() function, and hence should be __devinit not __init.

---
 arch/arm/mach-tegra/pinmux-tegra30-tables.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-tegra/pinmux-tegra30-tables.c +1 -1
index 8b6db9a..14fc0e4 100644
@@ -364,7 +364,7 @@ static const struct tegra_pingroup_desc tegra_soc_pingroups[TEGRA_MAX_PINGROUP]
 	PINGROUP(HDMI_CEC,	  SYS,      CEC,	RSVD1,	    RSVD2,	RSVD3,	    RSVD,	INPUT,	0x33e0),
 };
 
-void __init tegra30_pinmux_init(const struct tegra_pingroup_desc **pg,
+void __devinit tegra30_pinmux_init(const struct tegra_pingroup_desc **pg,
 		int *pg_max, const struct tegra_drive_pingroup_desc **pgdrive,
 		int *pgdrive_max)
 {
Signature · 1 line
1.7.0.4
#3 lore raw

cover arm/tegra: Fix section mismatch errors in pinmux

In reply to Stephen Warren
Quoted 7 lines · Stephen Warren

Patches in Tegra's for-3.3/soc branch introduce some section mismatch errors when building with CONFIG_DEBUG_SECTION_MISMATCH=y. This series fixes them. I patched each file separately in case you want to squash these into the original patches.

tegra20: 6996e08 arm/tegra: prepare pinmux code for multiple tegra variants
tegra30: 241682c arm/tegra: pinmux tables and definitions for tegra30

Thanks, applied to for-3.3/soc.

-Olof