diff options
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/he.c | 13 | ||||
-rw-r--r-- | drivers/atm/nicstar.c | 2 |
2 files changed, 2 insertions, 13 deletions
diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 449f6298dc89..8557adcd34ee 100644 --- a/drivers/atm/he.c +++ b/drivers/atm/he.c | |||
@@ -2865,15 +2865,4 @@ static struct pci_driver he_driver = { | |||
2865 | .id_table = he_pci_tbl, | 2865 | .id_table = he_pci_tbl, |
2866 | }; | 2866 | }; |
2867 | 2867 | ||
2868 | static int __init he_init(void) | 2868 | module_pci_driver(he_driver); |
2869 | { | ||
2870 | return pci_register_driver(&he_driver); | ||
2871 | } | ||
2872 | |||
2873 | static void __exit he_cleanup(void) | ||
2874 | { | ||
2875 | pci_unregister_driver(&he_driver); | ||
2876 | } | ||
2877 | |||
2878 | module_init(he_init); | ||
2879 | module_exit(he_cleanup); | ||
diff --git a/drivers/atm/nicstar.c b/drivers/atm/nicstar.c index 409502a78e7e..5aca5f4c5458 100644 --- a/drivers/atm/nicstar.c +++ b/drivers/atm/nicstar.c | |||
@@ -778,7 +778,7 @@ static int ns_init_card(int i, struct pci_dev *pcidev) | |||
778 | return error; | 778 | return error; |
779 | } | 779 | } |
780 | 780 | ||
781 | if (mac[i] == NULL || mac_pton(mac[i], card->atmdev->esi)) { | 781 | if (mac[i] == NULL || !mac_pton(mac[i], card->atmdev->esi)) { |
782 | nicstar_read_eprom(card->membase, NICSTAR_EPROM_MAC_ADDR_OFFSET, | 782 | nicstar_read_eprom(card->membase, NICSTAR_EPROM_MAC_ADDR_OFFSET, |
783 | card->atmdev->esi, 6); | 783 | card->atmdev->esi, 6); |
784 | if (memcmp(card->atmdev->esi, "\x00\x00\x00\x00\x00\x00", 6) == | 784 | if (memcmp(card->atmdev->esi, "\x00\x00\x00\x00\x00\x00", 6) == |