summaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi/ipmi_ssif.c
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2018-08-30 21:36:09 +0200
committerCorey Minyard <cminyard@mvista.com>2018-09-18 23:15:33 +0200
commitb3096c70b3faf0b08d7d461f359eb4b0447dff8e (patch)
treed74e4b4f66732b02dcd1271e426d58272a7ae40b /drivers/char/ipmi/ipmi_ssif.c
parentipmi: Free the address list on module cleanup (diff)
downloadlinux-b3096c70b3faf0b08d7d461f359eb4b0447dff8e.tar.xz
linux-b3096c70b3faf0b08d7d461f359eb4b0447dff8e.zip
ipmi: Remove platform driver overrides and use the id_table
The IPMI DMI code was adding platform overrides, which is not really an ideal solution. Switch to using the id_table in the drivers to identify the devices. Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi/ipmi_ssif.c')
-rw-r--r--drivers/char/ipmi/ipmi_ssif.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c
index 1ba787b9de3e..764d305a264d 100644
--- a/drivers/char/ipmi/ipmi_ssif.c
+++ b/drivers/char/ipmi/ipmi_ssif.c
@@ -1844,12 +1844,18 @@ static int ssif_platform_remove(struct platform_device *dev)
return 0;
}
+static const struct platform_device_id ssif_plat_ids[] = {
+ { "dmi-ipmi-ssif", 0 },
+ { }
+};
+
static struct platform_driver ipmi_driver = {
.driver = {
.name = DEVICE_NAME,
},
.probe = ssif_platform_probe,
.remove = ssif_platform_remove,
+ .id_table = ssif_plat_ids
};
static int init_ipmi_ssif(void)