diff options
author | Ohad Ben-Cohen <ohad@wizery.com> | 2012-03-05 19:11:02 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-03-05 19:11:02 -0500 |
commit | be89cd9db41d7e39e8bebc71aee86938ee675f9c (patch) | |
tree | e820ee054f53c1d7b63138f1011ed3a9a8e576d1 /arch | |
parent | 7db74d5e327197289f2eb83c13f8d1b565a21467 (diff) |
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: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index bd76394ccaf8..caca7d460e13 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -268,6 +268,8 @@ obj-y += $(smc91x-m) $(smc91x-y) | |||
268 | 268 | ||
269 | smsc911x-$(CONFIG_SMSC911X) := gpmc-smsc911x.o | 269 | smsc911x-$(CONFIG_SMSC911X) := gpmc-smsc911x.o |
270 | obj-y += $(smsc911x-m) $(smsc911x-y) | 270 | obj-y += $(smsc911x-m) $(smsc911x-y) |
271 | obj-$(CONFIG_ARCH_OMAP4) += hwspinlock.o | 271 | ifneq ($(CONFIG_HWSPINLOCK_OMAP),) |
272 | obj-y += hwspinlock.o | ||
273 | endif | ||
272 | 274 | ||
273 | obj-y += common-board-devices.o twl-common.o | 275 | obj-y += common-board-devices.o twl-common.o |