Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be89cd9d authored by Ohad Ben-Cohen's avatar Ohad Ben-Cohen Committed by Tony Lindgren
Browse files

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.

Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 7db74d5e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -268,6 +268,8 @@ 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