PCI: pci.txt fix __devexit() usage
authorGrant Grundler <grundler@parisc-linux.org>
Sun, 11 Feb 2007 07:04:04 +0000 (00:04 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Feb 2007 23:30:10 +0000 (15:30 -0800)
commit26ba05e4c66ad3fafe08412ffcf8c328cc4640b0
treef9abd84f3a90232ac2df9489e6f0e6514ce07123
parentf95d882d81ee731be2a4a3b34f86810e29b68836
PCI: pci.txt fix __devexit() usage

Marin Mitov <mitov@issp.bas.bg> spotted a brainfart where I had
failed to update copied text with *_remove and __devexit().

Marin made a good comment in his email to me:
| mydriver_probe() is _always_ executed, while mydriver_remove() is not.
| See: include/linux/init.h

Which says:
/* Functions marked as __devexit may be discarded at kernel link time, depending
   on config options.  Newer versions of binutils detect references from
   retained sections to discarded sections and flag an error.  Pointers to
   __devexit functions must use __devexit_p(function_name), the wrapper will
   insert either the function_name or NULL, depending on the config options.
 */

Signed-off-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/pci.txt