]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_dataflash_mmc_mux.c
common/fdt_support.c: Fix compile warnings
[people/ms/u-boot.git] / common / cmd_dataflash_mmc_mux.c
index de4e67615751969f144d276ce12d86e2325a8a91..1678d6e4661faf75b456419f65227d1f1e91f082 100644 (file)
@@ -41,8 +41,7 @@ int do_dataflash_mmc_mux (cmd_tbl_t *cmdtp, int flag, int argc, char * const arg
                        AT91F_GetMuxStatus () ? "MMC" : "SPI");
                return 0;
        default:
-               printf ("Usage:\n%s\n", cmdtp->usage);
-               return 1;
+               return cmd_usage(cmdtp);
        }
        return 0;
 }
@@ -59,7 +58,7 @@ static int mmc_nspi (const char *s)
 
 U_BOOT_CMD(
        dataflash_mmc_mux, 2, 1, do_dataflash_mmc_mux,
-       "dataflash_mmc_mux\t- enable or disable MMC or SPI\n",
+       "enable or disable MMC or SPI\n",
        "[mmc, spi]\n"
        "    - enable or disable MMC or SPI"
 );