summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorBrijesh Singh <brijeshkumar.singh@amd.com>2015-08-24 17:15:25 +0300
committerCorey Minyard <cminyard@mvista.com>2015-09-03 23:02:31 +0300
commitacbd9ae70a94bdc626508f444879e19ebe1c421f (patch)
tree236c6c7a2e566ec1f61d7d4dcc067debabb8fb12 /drivers/char
parentd08828973d96eb26e48fb7ca8fb8a8d49adbe53a (diff)
downloadlinux-acbd9ae70a94bdc626508f444879e19ebe1c421f.tar.xz
ipmi: add of_device_id in MODULE_DEVICE_TABLE
Fix autoloading ipmi modules when using device tree. Signed-off-by: Brijesh Singh <brijeshkumar.singh@amd.com> Moved this change up into the CONFIG_OF section to account for changes to the probing code. Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/ipmi/ipmi_si_intf.c1
1 files changed, 1 insertions, 0 deletions
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)