Skip to content

Commit

Permalink
ipmi: change device discovery order
Browse files Browse the repository at this point in the history
The ipmi spec provides an ordering for si discovery.  Change the driver to
match, with the exception of preferring smbios to SPMI as HPs (at least)
contain accurate information in the former but not the latter.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Matthew Garrett authored and Linus Torvalds committed May 27, 2010
1 parent d8cc526 commit 754d453
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3306,17 +3306,6 @@ static __devinit int init_ipmi_si(void)
}
mutex_unlock(&smi_infos_lock);

#ifdef CONFIG_DMI
dmi_find_bmc();
#endif

#ifdef CONFIG_ACPI
spmi_find_bmc();
#endif
#ifdef CONFIG_ACPI
pnp_register_driver(&ipmi_pnp_driver);
#endif

#ifdef CONFIG_PCI
rv = pci_register_driver(&ipmi_pci_driver);
if (rv)
Expand All @@ -3325,6 +3314,18 @@ static __devinit int init_ipmi_si(void)
rv);
#endif

#ifdef CONFIG_ACPI
pnp_register_driver(&ipmi_pnp_driver);
#endif

#ifdef CONFIG_DMI
dmi_find_bmc();
#endif

#ifdef CONFIG_ACPI
spmi_find_bmc();
#endif

#ifdef CONFIG_PPC_OF
of_register_platform_driver(&ipmi_of_platform_driver);
#endif
Expand Down

0 comments on commit 754d453

Please sign in to comment.