]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: c8sectpfe: Do not depend on DEBUG_FS
authorRicardo Ribalda <ribalda@chromium.org>
Thu, 11 Apr 2024 12:14:03 +0000 (12:14 +0000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 15 Apr 2024 11:42:38 +0000 (13:42 +0200)
Make dependency on DEBUG_FS conditional, that way we are not forced to
enable DEBUG_FS if we can to use this driver.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/st/sti/c8sectpfe/Kconfig
drivers/media/platform/st/sti/c8sectpfe/Makefile
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-debugfs.h

index 702b910509c9c9458307495eeaadb041ef6cf821..01c33d9c9ec37ddc9dfc94991e2e9d3b720111e7 100644 (file)
@@ -5,7 +5,6 @@ config DVB_C8SECTPFE
        depends on PINCTRL && DVB_CORE && I2C
        depends on ARCH_STI || ARCH_MULTIPLATFORM || COMPILE_TEST
        select FW_LOADER
-       select DEBUG_FS
        select DVB_LNBP21 if MEDIA_SUBDRV_AUTOSELECT
        select DVB_STV090x if MEDIA_SUBDRV_AUTOSELECT
        select DVB_STB6100 if MEDIA_SUBDRV_AUTOSELECT
index aedfc725cc19d84e775a14c3e99d1dafd9bd21ca..99425137ee0a9e48b997d62215d4378075024c69 100644 (file)
@@ -1,6 +1,9 @@
 # SPDX-License-Identifier: GPL-2.0
-c8sectpfe-y += c8sectpfe-core.o c8sectpfe-common.o c8sectpfe-dvb.o \
-               c8sectpfe-debugfs.o
+c8sectpfe-y += c8sectpfe-core.o c8sectpfe-common.o c8sectpfe-dvb.o
+
+ifneq ($(CONFIG_DEBUG_FS),)
+c8sectpfe-y += c8sectpfe-debugfs.o
+endif
 
 obj-$(CONFIG_DVB_C8SECTPFE) += c8sectpfe.o
 
index d2c35fb32d7ef069906e95eeab2417141fbd1c3d..8e1bfd86052476b60fca82a26e3637fa36d66ee5 100644 (file)
 
 #include "c8sectpfe-core.h"
 
+#if defined(CONFIG_DEBUG_FS)
 void c8sectpfe_debugfs_init(struct c8sectpfei *);
 void c8sectpfe_debugfs_exit(struct c8sectpfei *);
+#else
+static inline void c8sectpfe_debugfs_init(struct c8sectpfei *) {};
+static inline void c8sectpfe_debugfs_exit(struct c8sectpfei *) {};
+#endif
 
 #endif /* __C8SECTPFE_DEBUG_H */