aboutsummaryrefslogtreecommitdiffstats
path: root/include/soc
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-10-22 20:46:05 +0200
committerFlorian Fainelli <f.fainelli@gmail.com>2015-10-24 13:15:58 -0700
commit16134b3bc317c571e953d18196acf0a92afda5ff (patch)
tree111a078b7e8d55af78584f158d59b6156b915d84 /include/soc
parentARM: bcm2835: Add the Raspberry Pi firmware driver (diff)
downloadlinux-dev-16134b3bc317c571e953d18196acf0a92afda5ff.tar.xz
linux-dev-16134b3bc317c571e953d18196acf0a92afda5ff.zip
ARM: bcm2835: add mutual inclusion protection
This patch adds mutual inclusion protection for the rpi firmware header. Cc: Eric Anholt <eric@anholt.net> Cc: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/bcm2835/raspberrypi-firmware.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/soc/bcm2835/raspberrypi-firmware.h b/include/soc/bcm2835/raspberrypi-firmware.h
index 9d9efb7a43c3..c07d74aa39bf 100644
--- a/include/soc/bcm2835/raspberrypi-firmware.h
+++ b/include/soc/bcm2835/raspberrypi-firmware.h
@@ -6,6 +6,9 @@
* published by the Free Software Foundation.
*/
+#ifndef __SOC_RASPBERRY_FIRMWARE_H__
+#define __SOC_RASPBERRY_FIRMWARE_H__
+
#include <linux/types.h>
#include <linux/of_device.h>
@@ -113,3 +116,5 @@ int rpi_firmware_property(struct rpi_firmware *fw,
int rpi_firmware_property_list(struct rpi_firmware *fw,
void *data, size_t tag_size);
struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node);
+
+#endif /* __SOC_RASPBERRY_FIRMWARE_H__ */