Skip to contentSkip to conversation

powerpc: celleb trivial endianness and iomem annotations

PATCH New Al Viro 1 participant 1 message Feb 9, 2007 PowerPC

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 powerpc: celleb trivial endianness and iomem annotations

---
 arch/powerpc/platforms/celleb/pci.c      |   12 +++---
 arch/powerpc/platforms/celleb/scc_epci.c |   56 +++++++++++++++---------------
 2 files changed, 34 insertions(+), 34 deletions(-)
arch/powerpc/platforms/celleb/pci.c +6 -6
index 867f83a..98de836 100644
@@ -65,13 +65,13 @@ static inline u8 celleb_fake_config_readb(void *addr)
 
 static inline u16 celleb_fake_config_readw(void *addr)
 {
-	u16 *p = addr;
+	__le16 *p = addr;
 	return le16_to_cpu(*p);
 }
 
 static inline u32 celleb_fake_config_readl(void *addr)
 {
-	u32 *p = addr;
+	__le32 *p = addr;
 	return le32_to_cpu(*p);
 }
 
@@ -83,16 +83,16 @@ static inline void celleb_fake_config_writeb(u32 val, void *addr)
 
 static inline void celleb_fake_config_writew(u32 val, void *addr)
 {
-	u16 val16;
-	u16 *p = addr;
+	__le16 val16;
+	__le16 *p = addr;
 	val16 = cpu_to_le16(val);
 	*p = val16;
 }
 
 static inline void celleb_fake_config_writel(u32 val, void *addr)
 {
-	u32 val32;
-	u32 *p = addr;
+	__le32 val32;
+	__le32 *p = addr;
 	val32 = cpu_to_le32(val);
 	*p = val32;
 }
arch/powerpc/platforms/celleb/scc_epci.c +28 -28

170 lines not on this page · raw message

Signature · 1 line
1.5.0-rc2.GIT