diff options
Diffstat (limited to 'Documentation/PCI/pci.txt')
-rw-r--r-- | Documentation/PCI/pci.txt | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Documentation/PCI/pci.txt b/Documentation/PCI/pci.txt index aa09e5476bba..bccf602a87f5 100644 --- a/Documentation/PCI/pci.txt +++ b/Documentation/PCI/pci.txt | |||
@@ -183,12 +183,6 @@ Please mark the initialization and cleanup functions where appropriate | |||
183 | initializes. | 183 | initializes. |
184 | __exit Exit code. Ignored for non-modular drivers. | 184 | __exit Exit code. Ignored for non-modular drivers. |
185 | 185 | ||
186 | |||
187 | __devinit Device initialization code. | ||
188 | Identical to __init if the kernel is not compiled | ||
189 | with CONFIG_HOTPLUG, normal function otherwise. | ||
190 | __devexit The same for __exit. | ||
191 | |||
192 | Tips on when/where to use the above attributes: | 186 | Tips on when/where to use the above attributes: |
193 | o The module_init()/module_exit() functions (and all | 187 | o The module_init()/module_exit() functions (and all |
194 | initialization functions called _only_ from these) | 188 | initialization functions called _only_ from these) |
@@ -196,20 +190,6 @@ Tips on when/where to use the above attributes: | |||
196 | 190 | ||
197 | o Do not mark the struct pci_driver. | 191 | o Do not mark the struct pci_driver. |
198 | 192 | ||
199 | o The ID table array should be marked __devinitconst; this is done | ||
200 | automatically if the table is declared with DEFINE_PCI_DEVICE_TABLE(). | ||
201 | |||
202 | o The probe() and remove() functions should be marked __devinit | ||
203 | and __devexit respectively. All initialization functions | ||
204 | exclusively called by the probe() routine, can be marked __devinit. | ||
205 | Ditto for remove() and __devexit. | ||
206 | |||
207 | o If mydriver_remove() is marked with __devexit(), then all address | ||
208 | references to mydriver_remove must use __devexit_p(mydriver_remove) | ||
209 | (in the struct pci_driver declaration for example). | ||
210 | __devexit_p() will generate the function name _or_ NULL if the | ||
211 | function will be discarded. For an example, see drivers/net/tg3.c. | ||
212 | |||
213 | o Do NOT mark a function if you are not sure which mark to use. | 193 | o Do NOT mark a function if you are not sure which mark to use. |
214 | Better to not mark the function than mark the function wrong. | 194 | Better to not mark the function than mark the function wrong. |
215 | 195 | ||