Commit e22b4973 authored by Ricardo Ribalda's avatar Ricardo Ribalda Committed by Hans Verkuil
Browse files

media: c8sectpfe: Do not depend on DEBUG_FS



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: default avatarRicardo Ribalda <ribalda@chromium.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 71b3ed53
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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
+5 −2
Original line number Diff line number Diff line
# 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

+5 −0
Original line number Diff line number Diff line
@@ -12,7 +12,12 @@

#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 */