Skip to contentSkip to conversation

Fix compile time errors when DEBUG is defined

PATCH Applied Juergen Beisert 2 participants 2 messages Feb 11, 2010 – Feb 12, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compile time errors when DEBUG is defined

If the DEBUG macro is defined the compiler complains about a missing 'ipu_base' variable.

drivers/video/imx-ipu-fb.c +2 -2
index 4a27009..0bd86b2 100644
@@ -398,7 +398,7 @@ static inline u32 reg_read(struct ipu_fb_info *fbi, unsigned long reg)
 
 	val = readl(fbi->regs + reg);
 
-	debug("%s: %p 0x%08x\n", __func__, ipu_base + reg, val);
+	debug("%s: %p 0x%08x\n", __func__, fbi->regs + reg, val);
 
 	return val;
 }
@@ -406,7 +406,7 @@ static inline u32 reg_read(struct ipu_fb_info *fbi, unsigned long reg)
 static inline void reg_write(struct ipu_fb_info *fbi, u32 value,
 		unsigned long reg)
 {
-	debug("%s: %p 0x%08x\n", __func__, ipu_base + reg, value);
+	debug("%s: %p 0x%08x\n", __func__, fbi->regs + reg, value);
 
 	writel(value, fbi->regs + reg);
 }
Signature · 9 lines
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-8766-939 228     |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
maintainer Applied
#1 lore raw
Quoted 2 lines · Juergen Beisert

If the DEBUG macro is defined the compiler complains about a missing 'ipu_base' variable.

Applied

Sascha

Quoted 37 lines
drivers/video/imx-ipu-fb.c +2 -2
index 4a27009..0bd86b2 100644
@@ -398,7 +398,7 @@ static inline u32 reg_read(struct ipu_fb_info *fbi, unsigned long reg)
 
 	val = readl(fbi->regs + reg);
 
-	debug("%s: %p 0x%08x\n", __func__, ipu_base + reg, val);
+	debug("%s: %p 0x%08x\n", __func__, fbi->regs + reg, val);
 
 	return val;
 }
@@ -406,7 +406,7 @@ static inline u32 reg_read(struct ipu_fb_info *fbi, unsigned long reg)
 static inline void reg_write(struct ipu_fb_info *fbi, u32 value,
 		unsigned long reg)
 {
-	debug("%s: %p 0x%08x\n", __func__, ipu_base + reg, value);
+	debug("%s: %p 0x%08x\n", __func__, fbi->regs + reg, value);
 
 	writel(value, fbi->regs + reg);
 }
Signature · 10 lines
-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-8766-939 228     |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox