mt76: mt7921: depend on lindebugfs and turn debugfs support on
Add the missing MODULE_DEPEND() calls for lindebugfs. It is unfortunate that they are shared code between various bus implementations. Ideally we would leave the MODULE_DEPEND() calls in the debugfs.c file instead of adding extra #ifdef guards to the bus attachment files. Turn debugfs support on for mt76(core) and the mt7921 module for now. Sponsonred by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
@@ -124,3 +124,6 @@ mt76_register_debugfs_fops(struct mt76_phy *phy,
|
||||
return dir;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mt76_register_debugfs_fops);
|
||||
#if defined(__FreeBSD__)
|
||||
MODULE_DEPEND(mt76_core, lindebugfs, 1, 1, 1);
|
||||
#endif
|
||||
|
||||
@@ -609,4 +609,7 @@ MODULE_VERSION(mt7921_pci, 1);
|
||||
MODULE_DEPEND(mt7921_pci, mt76_core, 1, 1, 1);
|
||||
MODULE_DEPEND(mt7921_pci, linuxkpi, 1, 1, 1);
|
||||
MODULE_DEPEND(mt7921_pci, linuxkpi_wlan, 1, 1, 1);
|
||||
#if defined(CONFIG_MT7921_DEBUGFS)
|
||||
MODULE_DEPEND(mt7921_pci, lindebugfs, 1, 1, 1);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -352,4 +352,7 @@ MODULE_DEPEND(mt7921_usb, mt76_core, 1, 1, 1);
|
||||
MODULE_DEPEND(mt7921_usb, linuxkpi, 1, 1, 1);
|
||||
MODULE_DEPEND(mt7921_usb, linuxkpi_wlan, 1, 1, 1);
|
||||
MODULE_DEPEND(mt7921_usb, linuxkpi_usb, 1, 1, 1);
|
||||
#if defined(CONFIG_MT7921_DEBUGFS)
|
||||
MODULE_DEPEND(mt7921_usb, lindebugfs, 1, 1, 1);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -14,7 +14,7 @@ MT76_USB= 0
|
||||
# General options for common code so drivers can check.
|
||||
MT76_ACPI?= 0
|
||||
MT76_CONFIG_PM?= 0
|
||||
MT76_DEBUGFS?= 0
|
||||
MT76_DEBUGFS?= 1
|
||||
MT76_SOC_WED?= 0
|
||||
|
||||
# Other
|
||||
|
||||
@@ -8,7 +8,7 @@ MT7921_PCI= 1
|
||||
MT7921_SDIO= 0
|
||||
MT7921_USB= 0
|
||||
|
||||
MT7921_DEBUGFS= 0
|
||||
MT7921_DEBUGFS= 1
|
||||
|
||||
# Common stuff.
|
||||
SRCS+= init.c main.c mac.c mcu.c
|
||||
|
||||
Reference in New Issue
Block a user