diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/ata/pata_piccolo.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/ata/pata_piccolo.c')
-rw-r--r-- | drivers/ata/pata_piccolo.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/ata/pata_piccolo.c b/drivers/ata/pata_piccolo.c index 2beb6b5045f..cb01bf9496f 100644 --- a/drivers/ata/pata_piccolo.c +++ b/drivers/ata/pata_piccolo.c | |||
@@ -117,10 +117,24 @@ static struct pci_driver ata_tosh_pci_driver = { | |||
117 | #endif | 117 | #endif |
118 | }; | 118 | }; |
119 | 119 | ||
120 | module_pci_driver(ata_tosh_pci_driver); | 120 | static int __init ata_tosh_init(void) |
121 | { | ||
122 | return pci_register_driver(&ata_tosh_pci_driver); | ||
123 | } | ||
124 | |||
125 | |||
126 | static void __exit ata_tosh_exit(void) | ||
127 | { | ||
128 | pci_unregister_driver(&ata_tosh_pci_driver); | ||
129 | } | ||
130 | |||
121 | 131 | ||
122 | MODULE_AUTHOR("Alan Cox"); | 132 | MODULE_AUTHOR("Alan Cox"); |
123 | MODULE_DESCRIPTION("Low level driver for Toshiba Piccolo ATA"); | 133 | MODULE_DESCRIPTION("Low level driver for Toshiba Piccolo ATA"); |
124 | MODULE_LICENSE("GPL"); | 134 | MODULE_LICENSE("GPL"); |
125 | MODULE_DEVICE_TABLE(pci, ata_tosh); | 135 | MODULE_DEVICE_TABLE(pci, ata_tosh); |
126 | MODULE_VERSION(DRV_VERSION); | 136 | MODULE_VERSION(DRV_VERSION); |
137 | |||
138 | module_init(ata_tosh_init); | ||
139 | module_exit(ata_tosh_exit); | ||
140 | |||