summaryrefslogtreecommitdiffstats
path: root/Documentation/pci.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/pci.txt')
-rw-r--r--Documentation/pci.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/pci.txt b/Documentation/pci.txt
index 63e035a93..b96f6c48f 100644
--- a/Documentation/pci.txt
+++ b/Documentation/pci.txt
@@ -89,6 +89,16 @@ Please mark the initialization and cleanup functions where appropriate
function otherwise.
__devexit The same for __exit.
+Tips:
+ The module_init()/module_exit() functions (and all initialization
+ functions called only from these) should be marked __init/exit.
+ The struct pci_driver shouldn't be marked with any of these tags.
+ The ID table array should be marked __devinitdata.
+ The probe() and remove() functions (and all initialization
+ functions called only from these) should be marked __devinit/exit.
+ If you are sure the driver is not a hotplug driver then use only
+ __init/exit __initdata/exitdata.
+
2. How to find PCI devices manually (the old style)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~