Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / arch / ppc / boot / simple / mpc10x_memory.c
index 977daed..8da8f57 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * arch/ppc/boot/common/mpc10x_common.c
- *
  * A routine to find out how much memory the machine has.
  *
  * Based on:
@@ -33,7 +31,7 @@
 
 #define MPC10X_PCI_OP(rw, size, type, op, mask)                                \
 static void                                                            \
-mpc10x_##rw##_config_##size(unsigned int *cfg_addr,                    \
+mpc10x_##rw##_config_##size(unsigned int __iomem *cfg_addr,                    \
                unsigned int *cfg_data, int devfn, int offset,          \
                type val)                                               \
 {                                                                      \
@@ -52,10 +50,10 @@ MPC10X_PCI_OP(read, dword, u32 *, in_le32, 0)
  * the system.  This assumes that the firmware has correctly set up the memory
  * controller registers.  On CONFIG_PPC_PREP, we know we are being called
  * under a PReP memory map. On all other machines, we assume we are under
- * a CHRP memory map.  Further, on CONFIG_PPC_MULTIPLATFORM we must rename
+ * a CHRP memory map.  Further, on CONFIG_PPC_PREP we must rename
  * this function.
  */
-#ifdef CONFIG_PPC_MULTIPLATFORM
+#ifdef CONFIG_PPC_PREP
 #define get_mem_size mpc10x_get_mem_size
 #endif
 unsigned long