diff options
author | Brijesh Singh <brijeshkumar.singh@amd.com> | 2015-08-24 10:15:25 -0400 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2015-09-03 16:02:31 -0400 |
commit | acbd9ae70a94bdc626508f444879e19ebe1c421f (patch) | |
tree | 236c6c7a2e566ec1f61d7d4dcc067debabb8fb12 | |
parent | d08828973d96eb26e48fb7ca8fb8a8d49adbe53a (diff) |
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>
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 1 |
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) | |||
2646 | } | 2646 | } |
2647 | return 0; | 2647 | return 0; |
2648 | } | 2648 | } |
2649 | MODULE_DEVICE_TABLE(of, of_ipmi_match); | ||
2649 | #else | 2650 | #else |
2650 | #define of_ipmi_match NULL | 2651 | #define of_ipmi_match NULL |
2651 | static int of_ipmi_probe(struct platform_device *dev) | 2652 | static int of_ipmi_probe(struct platform_device *dev) |