diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2015-09-19 11:43:23 -0400 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2015-11-15 22:08:26 -0500 |
commit | 66f44018300c5e6f53c9d30d6920332cf0e6a8f9 (patch) | |
tree | d220e721ed70a213b0b10e71c1bab6a7868e0d0e /drivers/char/ipmi | |
parent | 314ef52fe67f8f03453b69169f954e2d04679bbd (diff) |
char: ipmi: Move MODULE_DEVICE_TABLE() to follow struct
The policy for drivers is to have MODULE_DEVICE_TABLE() just after the
struct used in it. For clarity.
Suggested-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 71b59cb6ae0c..55fe9020459f 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -2582,6 +2582,7 @@ static const struct of_device_id of_ipmi_match[] = { | |||
2582 | .data = (void *)(unsigned long) SI_BT }, | 2582 | .data = (void *)(unsigned long) SI_BT }, |
2583 | {}, | 2583 | {}, |
2584 | }; | 2584 | }; |
2585 | MODULE_DEVICE_TABLE(of, of_ipmi_match); | ||
2585 | 2586 | ||
2586 | static int of_ipmi_probe(struct platform_device *dev) | 2587 | static int of_ipmi_probe(struct platform_device *dev) |
2587 | { | 2588 | { |
@@ -2668,7 +2669,6 @@ static int of_ipmi_probe(struct platform_device *dev) | |||
2668 | } | 2669 | } |
2669 | return 0; | 2670 | return 0; |
2670 | } | 2671 | } |
2671 | MODULE_DEVICE_TABLE(of, of_ipmi_match); | ||
2672 | #else | 2672 | #else |
2673 | #define of_ipmi_match NULL | 2673 | #define of_ipmi_match NULL |
2674 | static int of_ipmi_probe(struct platform_device *dev) | 2674 | static int of_ipmi_probe(struct platform_device *dev) |