Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: lba: Convert LBA PCI bus driver to use arch_initcall()

Signed-off-by: Helge Deller <deller@gmx.de>

+3 -6
-1
arch/parisc/include/asm/processor.h
··· 315 315 /* driver code in driver/parisc */ 316 316 extern void processor_init(void); 317 317 extern void iosapic_init(void); 318 - extern void lba_init(void); 319 318 extern void sba_init(void); 320 319 struct parisc_device; 321 320 struct resource;
-3
arch/parisc/kernel/setup.c
··· 286 286 #if defined(CONFIG_IOMMU_SBA) 287 287 sba_init(); 288 288 #endif 289 - #if defined(CONFIG_PCI_LBA) 290 - lba_init(); 291 - #endif 292 289 293 290 #ifdef CONFIG_CHASSIS_LCD_LED 294 291 register_led_regions(); /* register LED port info in procfs */
+3 -2
drivers/parisc/lba_pci.c
··· 1682 1682 ** One time initialization to let the world know the LBA was found. 1683 1683 ** Must be called exactly once before pci_init(). 1684 1684 */ 1685 - void __init lba_init(void) 1685 + static int __init lba_init(void) 1686 1686 { 1687 - register_parisc_driver(&lba_driver); 1687 + return register_parisc_driver(&lba_driver); 1688 1688 } 1689 + arch_initcall(lba_init); 1689 1690 1690 1691 /* 1691 1692 ** Initialize the IBASE/IMASK registers for LBA (Elroy).