summaryrefslogtreecommitdiff
path: root/drivers/media/radio/si470x/Makefile
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-05 22:08:12 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-17 12:16:37 +0300
commit58757984ca3c73284a45dd53ac66f1414057cd09 (patch)
treea0eff49b9ae2a25f699fcda13618796a4f013d8d /drivers/media/radio/si470x/Makefile
parent84fc727ed49ca2e940f2369ffde6e2c317d85335 (diff)
downloadlinux-58757984ca3c73284a45dd53ac66f1414057cd09.tar.xz
media: si470x: allow build both USB and I2C at the same time
Currently, either USB or I2C is built. Change it to allow having both enabled at the same time. The main reason is that COMPILE_TEST all[yes/mod]builds will now contain all drivers under drivers/media. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/radio/si470x/Makefile')
-rw-r--r--drivers/media/radio/si470x/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/media/radio/si470x/Makefile b/drivers/media/radio/si470x/Makefile
index 06964816cfd6..563500823e04 100644
--- a/drivers/media/radio/si470x/Makefile
+++ b/drivers/media/radio/si470x/Makefile
@@ -2,8 +2,6 @@
# Makefile for radios with Silicon Labs Si470x FM Radio Receivers
#
-radio-usb-si470x-objs := radio-si470x-usb.o radio-si470x-common.o
-radio-i2c-si470x-objs := radio-si470x-i2c.o radio-si470x-common.o
-
-obj-$(CONFIG_USB_SI470X) += radio-usb-si470x.o
-obj-$(CONFIG_I2C_SI470X) += radio-i2c-si470x.o
+obj-$(CONFIG_RADIO_SI470X) := radio-si470x-common.o
+obj-$(CONFIG_USB_SI470X) += radio-si470x-usb.o
+obj-$(CONFIG_I2C_SI470X) += radio-si470x-i2c.o