parisc: sba_iommu: Convert SBA IOMMU driver to use arch_initcall()
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Родитель
3b425dd2ae
Коммит
53861a915a
|
@ -315,7 +315,6 @@ extern int show_cpuinfo (struct seq_file *m, void *v);
|
|||
/* driver code in driver/parisc */
|
||||
extern void processor_init(void);
|
||||
extern void iosapic_init(void);
|
||||
extern void sba_init(void);
|
||||
struct parisc_device;
|
||||
struct resource;
|
||||
extern void sba_distributed_lmmio(struct parisc_device *, struct resource *);
|
||||
|
|
|
@ -282,9 +282,6 @@ static int __init parisc_init(void)
|
|||
/* These are in a non-obvious order, will fix when we have an iotree */
|
||||
#if defined(CONFIG_IOSAPIC)
|
||||
iosapic_init();
|
||||
#endif
|
||||
#if defined(CONFIG_IOMMU_SBA)
|
||||
sba_init();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1994,10 +1994,11 @@ static int __init sba_driver_callback(struct parisc_device *dev)
|
|||
** This is the only routine which is NOT static.
|
||||
** Must be called exactly once before pci_init().
|
||||
*/
|
||||
void __init sba_init(void)
|
||||
static int __init sba_init(void)
|
||||
{
|
||||
register_parisc_driver(&sba_driver);
|
||||
return register_parisc_driver(&sba_driver);
|
||||
}
|
||||
arch_initcall(sba_init);
|
||||
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче