Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: arizona: Fix incorrect Makefile conditionals

The use of ifneq against 'n' to conditionally compile codec-specific
parts is wrong and was resulting in all the codec tables being built
even for deselected codecs.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Richard Fitzgerald and committed by
Lee Jones
e2ae0fbc 7e2d67e9

+3 -3
+3 -3
drivers/mfd/Makefile
··· 39 39 obj-$(CONFIG_MFD_ARIZONA) += arizona-irq.o 40 40 obj-$(CONFIG_MFD_ARIZONA_I2C) += arizona-i2c.o 41 41 obj-$(CONFIG_MFD_ARIZONA_SPI) += arizona-spi.o 42 - ifneq ($(CONFIG_MFD_WM5102),n) 42 + ifeq ($(CONFIG_MFD_WM5102),y) 43 43 obj-$(CONFIG_MFD_ARIZONA) += wm5102-tables.o 44 44 endif 45 - ifneq ($(CONFIG_MFD_WM5110),n) 45 + ifeq ($(CONFIG_MFD_WM5110),y) 46 46 obj-$(CONFIG_MFD_ARIZONA) += wm5110-tables.o 47 47 endif 48 - ifneq ($(CONFIG_MFD_WM8997),n) 48 + ifeq ($(CONFIG_MFD_WM8997),y) 49 49 obj-$(CONFIG_MFD_ARIZONA) += wm8997-tables.o 50 50 endif 51 51 obj-$(CONFIG_MFD_WM8400) += wm8400-core.o