ARM: iop13xx: mark iop13xx_scan_bus as __devinit
authorArnd Bergmann <arnd@arndb.de>
Mon, 30 Apr 2012 14:58:50 +0000 (14:58 +0000)
committerArnd Bergmann <arnd@arndb.de>
Sun, 7 Oct 2012 08:33:07 +0000 (10:33 +0200)
commitb04e246a897bb14f2508015aa708b1f7a484039a
tree585c9116f7d0c5af2ab1ebbe752c2b3f1b5a1725
parente7215fb33acfba65f0a83a2cf3c58c529e042078
ARM: iop13xx: mark iop13xx_scan_bus as __devinit

pci_scan_root_bus is __devinit, so iop13xx_scan_bus has to be the
same in order to safely call it. This is ok because the function
itself is only called from the hwpci->scan callback.

WARNING: vmlinux.o(.text+0x10138): Section mismatch in reference from the function iop13xx_scan_bus() to the function .devinit.text:pci_scan_root_bus()
The function iop13xx_scan_bus() references
the function __devinit pci_scan_root_bus().
This is often because iop13xx_scan_bus lacks a __devinit
annotation or the annotation of pci_scan_root_bus is wrong.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Dan Williams <djbw@fb.com>
arch/arm/mach-iop13xx/pci.c