diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-10-22 14:46:05 -0400 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2015-10-24 16:15:58 -0400 |
commit | 16134b3bc317c571e953d18196acf0a92afda5ff (patch) | |
tree | 111a078b7e8d55af78584f158d59b6156b915d84 | |
parent | 4e3d60656a7235b6b6e86d7ef48b0394276c35b5 (diff) |
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>
-rw-r--r-- | include/soc/bcm2835/raspberrypi-firmware.h | 5 |
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 @@ | |||
6 | * published by the Free Software Foundation. | 6 | * published by the Free Software Foundation. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #ifndef __SOC_RASPBERRY_FIRMWARE_H__ | ||
10 | #define __SOC_RASPBERRY_FIRMWARE_H__ | ||
11 | |||
9 | #include <linux/types.h> | 12 | #include <linux/types.h> |
10 | #include <linux/of_device.h> | 13 | #include <linux/of_device.h> |
11 | 14 | ||
@@ -113,3 +116,5 @@ int rpi_firmware_property(struct rpi_firmware *fw, | |||
113 | int rpi_firmware_property_list(struct rpi_firmware *fw, | 116 | int rpi_firmware_property_list(struct rpi_firmware *fw, |
114 | void *data, size_t tag_size); | 117 | void *data, size_t tag_size); |
115 | struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node); | 118 | struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node); |
119 | |||
120 | #endif /* __SOC_RASPBERRY_FIRMWARE_H__ */ | ||