]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_pci.c
[BUILD] conditionally compile common/cmd_*.c in common/Makefile
[u-boot] / common / cmd_pci.c
index 8d4d90107cec837a5f54dcc14abf413931f03f7a..82d97178f5dd24ad1482e6c8450b62ce110a8b84 100644 (file)
  */
 
 #include <common.h>
-
-#ifdef CONFIG_PCI
-
 #include <command.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <pci.h>
 
-#if (CONFIG_COMMANDS & CFG_CMD_PCI)
-
 extern int cmd_get_data_size(char* arg, int default_size);
 
 unsigned char  ShortPCIListing = 1;
@@ -550,7 +545,7 @@ int do_pci (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
 U_BOOT_CMD(
        pci,    5,      1,      do_pci,
-       "pci     - list and access PCI Configuraton Space\n",
+       "pci     - list and access PCI Configuration Space\n",
        "[bus] [long]\n"
        "    - short or long list of PCI devices on bus 'bus'\n"
        "pci header b.d.f\n"
@@ -564,7 +559,3 @@ U_BOOT_CMD(
        "pci write[.b, .w, .l] b.d.f address value\n"
        "    - write to CFG address\n"
 );
-
-#endif /* (CONFIG_COMMANDS & CFG_CMD_PCI) */
-
-#endif /* CONFIG_PCI */