Skip to contentSkip to conversation

OMAP: remove unused parameter arch_id from uncompress.h

PATCH New Domenico Andreoli 2 participants 2 messages Jul 14, 2012 – Aug 7, 2012

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

PATCH 1/1 OMAP: remove unused parameter arch_id from uncompress.h

From: Domenico Andreoli <[email protected]>

There is not point in having arch_id as parameter of __arch_decomp_setup(), nothing in it uses arch_id. The machine id is already exported (and used) with symbol __machine_arch_type as per mach-types.h.

Removing the pointless macro as well.

---
 arch/arm/plat-omap/include/plat/uncompress.h |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/plat-omap/include/plat/uncompress.h +1 -3
Index: b/arch/arm/plat-omap/include/plat/uncompress.h
===================================================================
@@ -103,7 +103,7 @@ static inline void flush(void)
 	_DEBUG_LL_ENTRY(mach, TI81XX_UART##p##_BASE, OMAP_PORT_SHIFT,	\
 		TI81XXUART##p)
 
-static inline void __arch_decomp_setup(unsigned long arch_id)
+static inline void arch_decomp_setup(void)
 {
 	int port = 0;
 
@@ -186,8 +186,6 @@ static inline void __arch_decomp_setup(u
 	} while (0);
 }
 
-#define arch_decomp_setup()	__arch_decomp_setup(arch_id)
-
 /*
  * nothing to do
  */
#1 lore raw

PATCH 1/1 OMAP: remove unused parameter arch_id from uncompress.h

Quoted 7 lines · Domenico Andreoli

From: Domenico Andreoli <[email protected]>

There is not point in having arch_id as parameter of __arch_decomp_setup(), nothing in it uses arch_id. The machine id is already exported (and used) with symbol __machine_arch_type as per mach-types.h.

Removing the pointless macro as well.

Thanks applying into fixes.

Tony