mt7603: move module init to mt7603_main.c

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2016-02-28 22:06:21 +01:00
parent 675868d4e8
commit 4dd3de777b
3 changed files with 18 additions and 4 deletions
+1
View File
@@ -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
+16
View File
@@ -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
View File
@@ -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);