char: ipmi: Move MODULE_DEVICE_TABLE() to follow struct
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Sat, 19 Sep 2015 15:43:23 +0000 (16:43 +0100)
committerCorey Minyard <cminyard@mvista.com>
Mon, 16 Nov 2015 03:08:26 +0000 (21:08 -0600)
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>
drivers/char/ipmi/ipmi_si_intf.c

index 71b59cb6ae0c08a8d48831d2d0b6e7e2fe1d8981..55fe9020459f2c4bdcec710a90220b2ea32e54db 100644 (file)
@@ -2582,6 +2582,7 @@ static const struct of_device_id of_ipmi_match[] = {
          .data = (void *)(unsigned long) SI_BT },
        {},
 };
+MODULE_DEVICE_TABLE(of, of_ipmi_match);
 
 static int of_ipmi_probe(struct platform_device *dev)
 {
@@ -2668,7 +2669,6 @@ 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)