From: Brijesh Singh Date: Mon, 24 Aug 2015 14:15:25 +0000 (-0500) Subject: ipmi: add of_device_id in MODULE_DEVICE_TABLE X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=acbd9ae70a94bdc626508f444879e19ebe1c421f;p=deliverable%2Flinux.git ipmi: add of_device_id in MODULE_DEVICE_TABLE Fix autoloading ipmi modules when using device tree. Signed-off-by: Brijesh Singh Moved this change up into the CONFIG_OF section to account for changes to the probing code. Signed-off-by: Corey Minyard --- diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 21bddc10e321..654f6f36a071 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c @@ -2646,6 +2646,7 @@ static int of_ipmi_probe(struct platform_device *dev) } return 0; } +MODULE_DEVICE_TABLE(of, of_ipmi_match); #else #define of_ipmi_match NULL static int of_ipmi_probe(struct platform_device *dev)