Skip to contentSkip to conversation

ARM: OMAP: don't build hwspinlock in vain

PATCH New Ohad Ben-Cohen 2 participants 2 messages Mar 4, 2012 – Mar 5, 2012

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

PATCH 1/1 ARM: OMAP: don't build hwspinlock in vain

Cleanup: don't build mach-omap2/hwspinlock.c if the OMAP hwspinlock driver isn't configured.

This will both shorten build time and avoid registering a device which isn't needed.

---
Tony, it's probably better if you take it, to minimize omap merge conflicts. Thanks!

 arch/arm/mach-omap2/Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/Makefile +3 -1
index 00d7025..5bce3bd 100644
@@ -268,7 +268,9 @@ obj-y					+= $(smc91x-m) $(smc91x-y)
 
 smsc911x-$(CONFIG_SMSC911X)		:= gpmc-smsc911x.o
 obj-y					+= $(smsc911x-m) $(smsc911x-y)
-obj-$(CONFIG_ARCH_OMAP4)		+= hwspinlock.o
+ifneq ($(CONFIG_HWSPINLOCK_OMAP),)
+obj-y					+= hwspinlock.o
+endif
 
 obj-y					+= common-board-devices.o twl-common.o
 
Signature · 1 line
1.7.5.4
maintainer
#1 lore raw

PATCH 1/1 ARM: OMAP: don't build hwspinlock in vain

Quoted 5 lines · Ohad Ben-Cohen

Cleanup: don't build mach-omap2/hwspinlock.c if the OMAP hwspinlock driver isn't configured.

This will both shorten build time and avoid registering a device which isn't needed.

Thanks applying into fixes-non-critical-part2.

Tony