Skip to content

Commit

Permalink
mt76x0: use shared debugfs implementation
Browse files Browse the repository at this point in the history
Use mt76x02 debugfs implementation and remove duplicated code

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
Lorenzo Bianconi authored and Felix Fietkau committed Nov 30, 2018
1 parent 7605541 commit 63f15d9
Showing 4 changed files with 3 additions and 92 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/mediatek/mt76/mt76x0/Makefile
Original file line number Diff line number Diff line change
@@ -3,8 +3,8 @@ obj-$(CONFIG_MT76x0E) += mt76x0e.o
obj-$(CONFIG_MT76x0_COMMON) += mt76x0-common.o

mt76x0-common-y := \
init.o main.o trace.o eeprom.o phy.o \
mac.o debugfs.o
init.o main.o trace.o eeprom.o phy.o mac.o

mt76x0u-y := usb.o usb_mcu.o
mt76x0e-y := pci.o pci_mcu.o

87 changes: 0 additions & 87 deletions drivers/net/wireless/mediatek/mt76/mt76x0/debugfs.c

This file was deleted.

2 changes: 1 addition & 1 deletion drivers/net/wireless/mediatek/mt76/mt76x0/init.c
Original file line number Diff line number Diff line change
@@ -389,7 +389,7 @@ int mt76x0_register_device(struct mt76x02_dev *dev)
if (mdev->cap.has_5ghz)
mt76x0_vht_cap_mask(&dev->mt76.sband_5g.sband);

mt76x0_init_debugfs(dev);
mt76x02_init_debugfs(dev);

return 0;
}
2 changes: 0 additions & 2 deletions drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h
Original file line number Diff line number Diff line change
@@ -37,8 +37,6 @@ static inline bool is_mt7610e(struct mt76x02_dev *dev)
return false;
}

void mt76x0_init_debugfs(struct mt76x02_dev *dev);

/* Init */
struct mt76x02_dev *
mt76x0_alloc_device(struct device *pdev,

0 comments on commit 63f15d9

Please sign in to comment.