mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: move module init to mt7603_main.c
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -137,6 +137,7 @@ struct mt7603_dev {
|
||||
};
|
||||
|
||||
extern const struct ieee80211_ops mt7603_ops;
|
||||
extern struct pci_driver mt7603_pci_driver;
|
||||
|
||||
/* need offset to prevent conflict with ampdu_ack_len */
|
||||
#define MT_RATE_DRIVER_DATA_OFFSET 4
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/pci.h>
|
||||
#include "mt7603.h"
|
||||
#include "mt7603_eeprom.h"
|
||||
|
||||
@@ -521,3 +522,18 @@ const struct ieee80211_ops mt7603_ops = {
|
||||
.release_buffered_frames = mt76_release_buffered_frames,
|
||||
.set_coverage_class = mt7603_set_coverage_class,
|
||||
};
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int __init mt7603_init(void)
|
||||
{
|
||||
return pci_register_driver(&mt7603_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit mt7603_exit(void)
|
||||
{
|
||||
pci_unregister_driver(&mt7603_pci_driver);
|
||||
}
|
||||
|
||||
module_init(mt7603_init);
|
||||
module_exit(mt7603_exit);
|
||||
|
||||
+1
-4
@@ -79,13 +79,10 @@ mt76pci_remove(struct pci_dev *pdev)
|
||||
MODULE_DEVICE_TABLE(pci, mt76pci_device_table);
|
||||
MODULE_FIRMWARE(MT7603_FIRMWARE_E1);
|
||||
MODULE_FIRMWARE(MT7603_FIRMWARE_E2);
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static struct pci_driver mt76pci_driver = {
|
||||
struct pci_driver mt7603_pci_driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
.id_table = mt76pci_device_table,
|
||||
.probe = mt76pci_probe,
|
||||
.remove = mt76pci_remove,
|
||||
};
|
||||
|
||||
module_pci_driver(mt76pci_driver);
|
||||
|
||||
Reference in New Issue
Block a user