ipmi: create hardware-independent softdep for ipmi_devintf
authorMartin Wilck <mwilck@suse.com>
Fri, 25 Nov 2016 09:55:36 +0000 (10:55 +0100)
committerCorey Minyard <cminyard@mvista.com>
Mon, 12 Dec 2016 20:26:29 +0000 (14:26 -0600)
commit070cbd1d42aa0e359c9957cd73c2a529dec62047
tree557f3cfceb3d0953901e7bdd72ebdbaec779253b
parenta24b5dd5eda73b956da27031cefbe4374b6af2bc
ipmi: create hardware-independent softdep for ipmi_devintf

When a computer has an IPMI system interface, the device interface
is most probably also desired. Autoloading of ipmi_devintf currently
works only if ipmi_si has allocated a platform device. That doesn't
happen if the SI interface was detected e.g. via ACPI. But ACPI
detection is preferred these days, see e.g. kernel.org bug 46741.

This patch introduces a softdep in place of the existing modalias
for ipmi_devintf.

Signed-off-by: Martin Wilck <mwilck@suse.com>
Suggested-by: Takashi Iwai <tiwai@suse.com>
I moved this to ipmi_msghandler.c, so it works for all IPMI
interfaces.  Retested by Martin.

Tested-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_devintf.c
drivers/char/ipmi/ipmi_msghandler.c