]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_vfd.c
UBI: Fix size parsing in "ubi create"
[u-boot] / common / cmd_vfd.c
index fffb39cca25a7125e9f0eb1b534c25a376fc40b4..45f427126da27cf774c4bfceeba126980041829c 100644 (file)
@@ -35,7 +35,7 @@
 #include <common.h>
 #include <command.h>
 
-#if (CONFIG_COMMANDS & CFG_CMD_VFD) || defined(CONFIG_CMD_VFD)
+#if defined(CONFIG_CMD_VFD)
 
 #include <vfd_logo.h>
 #define VFD_TEST_LOGO_BMPNR 0
@@ -66,16 +66,15 @@ int do_vfd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 }
 
 U_BOOT_CMD(
-       vfd,    2,      0,      do_vfd,
-       "vfd     - load a bitmap to the VFDs on TRAB\n",
-       "/N\n"
-       "    - load bitmap N to the VFDs (N is _decimal_ !!!)\n"
+       vfd,    2,      0,      do_vfd,
+       "vfd     - load a bitmap to the VFDs on TRAB\n",
+       "/N\n"
+       "    - load bitmap N to the VFDs (N is _decimal_ !!!)\n"
        "vfd ADDR\n"
        "    - load bitmap at address ADDR\n"
 );
-#endif /* CFG_CMD_VFD */
+#endif
 
-#ifdef CONFIG_VFD
 int trab_vfd (ulong bitmap)
 {
        uchar *addr;
@@ -103,4 +102,3 @@ int trab_vfd (ulong bitmap)
        transfer_pic(3, addr, VFD_LOGO_HEIGHT, VFD_LOGO_WIDTH);
        return 0;
 }
-#endif /* CONFIG_VFD */