]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mt76x0: pci: add missing MODULE_FIRMWARE macro
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Thu, 18 Oct 2018 22:57:32 +0000 (00:57 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:21:40 +0000 (12:21 +0100)
Add missing firmware declaration for mt76x0e driver

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h
drivers/net/wireless/mediatek/mt76/mt76x0/pci.c
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c

index 989ed00c0b7afc0e0e49dafd2710974af6e3afd8..24e817bda5008328f300b2a33e3df16bdbf40d54 100644 (file)
@@ -28,6 +28,9 @@
 #include "../mt76x02.h"
 #include "eeprom.h"
 
+#define MT7610E_FIRMWARE               "mediatek/mt7610e.bin"
+#define MT7650E_FIRMWARE               "mediatek/mt7650e.bin"
+
 #define MT_USB_AGGR_SIZE_LIMIT         21 /* * 1024B */
 #define MT_USB_AGGR_TIMEOUT            0x80 /* * 33ns */
 
index 3277e6b07a462670580c5b81935a55def086c4bf..6e11b8c8e4957af137c70bf7b30042654a527cf5 100644 (file)
@@ -211,6 +211,8 @@ static const struct pci_device_id mt76x0e_device_table[] = {
 };
 
 MODULE_DEVICE_TABLE(pci, mt76x0e_device_table);
+MODULE_FIRMWARE(MT7610E_FIRMWARE);
+MODULE_FIRMWARE(MT7650E_FIRMWARE);
 MODULE_LICENSE("Dual BSD/GPL");
 
 static struct pci_driver mt76x0e_driver = {
index 569861289aa5a72c7459dc7853c2e8085f19bf64..aca0ea318dcef4e9b2536afb11ed4b874fd123f6 100644 (file)
@@ -19,9 +19,6 @@
 #include "mt76x0.h"
 #include "mcu.h"
 
-#define MT7610E_FIRMWARE       "mediatek/mt7610e.bin"
-#define MT7650E_FIRMWARE       "mediatek/mt7650e.bin"
-
 #define MT_MCU_IVB_ADDR                (MT_MCU_ILM_ADDR + 0x54000 - MT_MCU_IVB_SIZE)
 
 static int mt76x0e_load_firmware(struct mt76x02_dev *dev)