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

parisc: sba_iommu: Convert SBA IOMMU 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 sba_init(void); 319 318 struct parisc_device; 320 319 struct resource; 321 320 extern void sba_distributed_lmmio(struct parisc_device *, struct resource *);
-3
arch/parisc/kernel/setup.c
··· 283 283 #if defined(CONFIG_IOSAPIC) 284 284 iosapic_init(); 285 285 #endif 286 - #if defined(CONFIG_IOMMU_SBA) 287 - sba_init(); 288 - #endif 289 286 return 0; 290 287 } 291 288 arch_initcall(parisc_init);
+3 -2
drivers/parisc/sba_iommu.c
··· 1994 1994 ** This is the only routine which is NOT static. 1995 1995 ** Must be called exactly once before pci_init(). 1996 1996 */ 1997 - void __init sba_init(void) 1997 + static int __init sba_init(void) 1998 1998 { 1999 - register_parisc_driver(&sba_driver); 1999 + return register_parisc_driver(&sba_driver); 2000 2000 } 2001 + arch_initcall(sba_init); 2001 2002 2002 2003 2003 2004 /**