aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2014-07-01 11:33:15 +0200
committerNicolas Ferre <[email protected]>2014-09-02 18:52:17 +0200
commit1bd59dbe53d9913420ae751d0447e769fd22cbf5 (patch)
tree0e216fba48ea74fa72c93280b31ffa4bce13ad98
parent52c3ffb018f4af038039f783d932ba5c99e4a87b (diff)
ARM: at91: generic.h: Add include safe guards
The generic.h header file doesn't have any safe guards against multiple inclusion. It only worked so far because all the symbols defined in it were extern, but this is a rather fragile assumption. Signed-off-by: Maxime Ripard <[email protected]> Acked-by: Boris BREZILLON <[email protected]> Acked-by: Alexandre Belloni <[email protected]> Acked-by: Daniel Lezcano <[email protected]> Signed-off-by: Nicolas Ferre <[email protected]>
-rw-r--r--arch/arm/mach-at91/generic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h
index f42b0490ad98..31cba6d9aa61 100644
--- a/arch/arm/mach-at91/generic.h
+++ b/arch/arm/mach-at91/generic.h
@@ -8,6 +8,9 @@
* published by the Free Software Foundation.
*/
+#ifndef _AT91_GENERIC_H
+#define _AT91_GENERIC_H
+
#include <linux/clkdev.h>
#include <linux/of.h>
#include <linux/reboot.h>
@@ -84,3 +87,5 @@ extern int __init at91_gpio_of_irq_setup(struct device_node *node,
struct device_node *parent);
extern u32 at91_get_extern_irq(void);
+
+#endif /* _AT91_GENERIC_H */