mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 17:25:38 +00:00
parisc: lba: Convert LBA PCI bus driver to use arch_initcall()
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
ba8723b1ed
commit
df3f93596c
@ -315,7 +315,6 @@ extern int show_cpuinfo (struct seq_file *m, void *v);
|
|||||||
/* driver code in driver/parisc */
|
/* driver code in driver/parisc */
|
||||||
extern void processor_init(void);
|
extern void processor_init(void);
|
||||||
extern void iosapic_init(void);
|
extern void iosapic_init(void);
|
||||||
extern void lba_init(void);
|
|
||||||
extern void sba_init(void);
|
extern void sba_init(void);
|
||||||
struct parisc_device;
|
struct parisc_device;
|
||||||
struct resource;
|
struct resource;
|
||||||
|
@ -286,9 +286,6 @@ static int __init parisc_init(void)
|
|||||||
#if defined(CONFIG_IOMMU_SBA)
|
#if defined(CONFIG_IOMMU_SBA)
|
||||||
sba_init();
|
sba_init();
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_PCI_LBA)
|
|
||||||
lba_init();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_CHASSIS_LCD_LED
|
#ifdef CONFIG_CHASSIS_LCD_LED
|
||||||
register_led_regions(); /* register LED port info in procfs */
|
register_led_regions(); /* register LED port info in procfs */
|
||||||
|
@ -1682,10 +1682,11 @@ static struct parisc_driver lba_driver __refdata = {
|
|||||||
** One time initialization to let the world know the LBA was found.
|
** One time initialization to let the world know the LBA was found.
|
||||||
** Must be called exactly once before pci_init().
|
** Must be called exactly once before pci_init().
|
||||||
*/
|
*/
|
||||||
void __init lba_init(void)
|
static int __init lba_init(void)
|
||||||
{
|
{
|
||||||
register_parisc_driver(&lba_driver);
|
return register_parisc_driver(&lba_driver);
|
||||||
}
|
}
|
||||||
|
arch_initcall(lba_init);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Initialize the IBASE/IMASK registers for LBA (Elroy).
|
** Initialize the IBASE/IMASK registers for LBA (Elroy).
|
||||||
|
Loading…
Reference in New Issue
Block a user