diff options
Diffstat (limited to 'drivers/mtd/maps/pcmciamtd.c')
-rw-r--r-- | drivers/mtd/maps/pcmciamtd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c index 3ddcb1bf6824..93c05dfa030d 100644 --- a/drivers/mtd/maps/pcmciamtd.c +++ b/drivers/mtd/maps/pcmciamtd.c | |||
@@ -67,7 +67,6 @@ struct pcmciamtd_dev { | |||
67 | 67 | ||
68 | 68 | ||
69 | static dev_info_t dev_info = "pcmciamtd"; | 69 | static dev_info_t dev_info = "pcmciamtd"; |
70 | static dev_link_t *dev_list; | ||
71 | 70 | ||
72 | /* Module parameters */ | 71 | /* Module parameters */ |
73 | 72 | ||
@@ -782,8 +781,7 @@ static dev_link_t *pcmciamtd_attach(void) | |||
782 | link->conf.Attributes = 0; | 781 | link->conf.Attributes = 0; |
783 | link->conf.IntType = INT_MEMORY; | 782 | link->conf.IntType = INT_MEMORY; |
784 | 783 | ||
785 | link->next = dev_list; | 784 | link->next = NULL; |
786 | dev_list = link; | ||
787 | 785 | ||
788 | /* Register with Card Services */ | 786 | /* Register with Card Services */ |
789 | client_reg.dev_info = &dev_info; | 787 | client_reg.dev_info = &dev_info; |
@@ -865,7 +863,6 @@ static void __exit exit_pcmciamtd(void) | |||
865 | { | 863 | { |
866 | DEBUG(1, DRIVER_DESC " unloading"); | 864 | DEBUG(1, DRIVER_DESC " unloading"); |
867 | pcmcia_unregister_driver(&pcmciamtd_driver); | 865 | pcmcia_unregister_driver(&pcmciamtd_driver); |
868 | BUG_ON(dev_list != NULL); | ||
869 | } | 866 | } |
870 | 867 | ||
871 | module_init(init_pcmciamtd); | 868 | module_init(init_pcmciamtd); |