[PATCH 6/9] drivers: pxafb: add include ifdefery

Robert Jarzmik robert.jarzmik at free.fr
Wed Nov 23 22:02:41 EST 2011


From: Robert Jarzmik <robert.jarzmik at atosorigin.com>

Add protection against multiple includes of pxafb.h

Signed-off-by: Robert Jarzmik <robert.jarzmik at free.fr>
---
 arch/arm/mach-pxa/include/mach/pxafb.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-pxa/include/mach/pxafb.h b/arch/arm/mach-pxa/include/mach/pxafb.h
index a652647..1730fbf 100644
--- a/arch/arm/mach-pxa/include/mach/pxafb.h
+++ b/arch/arm/mach-pxa/include/mach/pxafb.h
@@ -1,6 +1,8 @@
 /*
  * This structure describes the machine which we are running on.
  */
+#ifndef _PXAFB_
+#define _PXAFB_
 
 #include <fb.h>
 
@@ -75,3 +77,4 @@ struct pxafb_platform_data {
  * @file
  * @brief PXA related framebuffer declarations
  */
+#endif
-- 
1.7.5.4




More information about the barebox mailing list