]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - api/api_platform-ppc.c
83xx: Replace CONFIG_MPC83XX with CONFIG_MPC83xx
[karo-tx-uboot.git] / api / api_platform-ppc.c
index ca9f9a5cd19d0f3778261a051d37c0be93d8c04d..a3d981f9e38436083ce03d6a18b9f98de6a86ba5 100644 (file)
@@ -28,9 +28,6 @@
  */
 
 #include <config.h>
-
-#if defined(CONFIG_API)
-
 #include <linux/types.h>
 #include <api_public.h>
 
@@ -56,7 +53,7 @@ int platform_sys_info(struct sys_info *si)
 #define bi_bar bi_immr_base
 #elif defined(CONFIG_MPC5xxx)
 #define bi_bar bi_mbar_base
-#elif defined(CONFIG_MPC83XX)
+#elif defined(CONFIG_MPC83xx)
 #define bi_bar bi_immrbar
 #elif defined(CONFIG_MPC8220)
 #define bi_bar bi_mbar_base
@@ -66,7 +63,7 @@ int platform_sys_info(struct sys_info *si)
        si->bar = gd->bd->bi_bar;
 #undef bi_bar
 #else
-       si->bar = NULL;
+       si->bar = 0;
 #endif
 
        platform_set_mr(si, gd->bd->bi_memstart, gd->bd->bi_memsize, MR_ATTR_DRAM);
@@ -75,5 +72,3 @@ int platform_sys_info(struct sys_info *si)
 
        return 1;
 }
-
-#endif /* CONFIG_API */