aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irqchip.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2014-05-08 17:09:24 -0400
committerRob Herring <robh@kernel.org>2014-05-20 15:25:24 -0400
commit54196ccbe0ba1f268a646059473313589db35b01 (patch)
tree07443c68af484b0a74ce8456e58f97342f95cf25 /drivers/irqchip/irqchip.h
parent826d8958419ae924ae2af12d214ee599ee713e91 (diff)
of: consolidate linker section OF match table declarations
We now have several OF match tables using linker sections that are nearly the same definition. The only variation is the callback function prototype. Create a common define for creating linker section OF match table entries which each table declaration can use. Acked-by: Grant Likely <grant.likely@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/irqchip/irqchip.h')
-rw-r--r--drivers/irqchip/irqchip.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/irqchip/irqchip.h b/drivers/irqchip/irqchip.h
index e445ba2d6add..0f6486d4f1b0 100644
--- a/drivers/irqchip/irqchip.h
+++ b/drivers/irqchip/irqchip.h
@@ -11,6 +11,8 @@
11#ifndef _IRQCHIP_H 11#ifndef _IRQCHIP_H
12#define _IRQCHIP_H 12#define _IRQCHIP_H
13 13
14#include <linux/of.h>
15
14/* 16/*
15 * This macro must be used by the different irqchip drivers to declare 17 * This macro must be used by the different irqchip drivers to declare
16 * the association between their DT compatible string and their 18 * the association between their DT compatible string and their
@@ -21,9 +23,6 @@
21 * @compstr: compatible string of the irqchip driver 23 * @compstr: compatible string of the irqchip driver
22 * @fn: initialization function 24 * @fn: initialization function
23 */ 25 */
24#define IRQCHIP_DECLARE(name,compstr,fn) \ 26#define IRQCHIP_DECLARE(name, compat, fn) OF_DECLARE_2(irqchip, name, compat, fn)
25 static const struct of_device_id irqchip_of_match_##name \
26 __used __section(__irqchip_of_table) \
27 = { .compatible = compstr, .data = fn }
28 27
29#endif 28#endif