diff options
author | Corey Minyard <cminyard@mvista.com> | 2018-08-30 21:36:09 +0200 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2018-09-18 23:15:33 +0200 |
commit | b3096c70b3faf0b08d7d461f359eb4b0447dff8e (patch) | |
tree | d74e4b4f66732b02dcd1271e426d58272a7ae40b /drivers/char/ipmi/ipmi_ssif.c | |
parent | ipmi: Free the address list on module cleanup (diff) | |
download | linux-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.c | 6 |
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) |