From: Alex Chiang Date: Thu, 2 Apr 2009 00:24:12 +0000 (-0600) Subject: PCI: annotate pci_rescan_bus as __ref, not __devinit X-Git-Tag: v2.6.30-rc1~5^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5446a6bdb51e71da7a203e395b0b4c668d559a3a;p=pandora-kernel.git PCI: annotate pci_rescan_bus as __ref, not __devinit pci_rescan_bus was annotated as __devinit, which is wrong, because it will never be part of device initialization. Howevever, we can't simply drop the annotation, because then we get section warnings about calling pci_scan_child_bus (which is correctly marked as __devinit). pci_rescan_bus will only get built when CONFIG_HOTPLUG is set, meaning that __devinit is a nop, so we know that pci_scan_child_bus has not been freed. Annotate as __ref to silence modpost. Signed-off-by: Alex Chiang Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed