[PATCH 4/4] ipmi/powernv: Use dynamic device ids
Jeremy Kerr
jk at ozlabs.org
Mon Sep 12 18:55:37 AEST 2016
We don't currently provide any device ID info in the SMI registration,
so use the dynamic ID infrastructure instead.
Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
---
drivers/char/ipmi/ipmi_powernv.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/char/ipmi/ipmi_powernv.c b/drivers/char/ipmi/ipmi_powernv.c
index 6e658aa..10e69d6 100644
--- a/drivers/char/ipmi/ipmi_powernv.c
+++ b/drivers/char/ipmi/ipmi_powernv.c
@@ -23,7 +23,6 @@
struct ipmi_smi_powernv {
u64 interface_id;
- struct ipmi_device_id ipmi_id;
ipmi_smi_t intf;
unsigned int irq;
@@ -265,9 +264,7 @@ static int ipmi_powernv_probe(struct platform_device *pdev)
goto err_unregister;
}
- /* todo: query actual ipmi_device_id */
- rc = ipmi_register_smi(&ipmi_powernv_smi_handlers, ipmi,
- &ipmi->ipmi_id, dev, 0);
+ rc = ipmi_register_smi(&ipmi_powernv_smi_handlers, ipmi, NULL, dev, 0);
if (rc) {
dev_warn(dev, "IPMI SMI registration failed (%d)\n", rc);
goto err_free_msg;
--
2.7.4
More information about the Linuxppc-dev
mailing list