Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bd59dbe authored by Maxime Ripard's avatar Maxime Ripard Committed by Nicolas Ferre
Browse files

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: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: default avatarBoris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent 52c3ffb0
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -8,6 +8,9 @@
 * published by the Free Software Foundation.
 * published by the Free Software Foundation.
 */
 */


#ifndef _AT91_GENERIC_H
#define _AT91_GENERIC_H

#include <linux/clkdev.h>
#include <linux/clkdev.h>
#include <linux/of.h>
#include <linux/of.h>
#include <linux/reboot.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);
					  struct device_node *parent);


extern u32 at91_get_extern_irq(void);
extern u32 at91_get_extern_irq(void);

#endif /* _AT91_GENERIC_H */