]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_source.c
GCC4.6: Squash warning in cmd_nvedit.c
[karo-tx-uboot.git] / common / cmd_source.c
index 43e131592933346b0a36f53c014583b2ea526862..16a627a3dd5def7796ade9d30e5638d52fb27046 100644 (file)
@@ -199,7 +199,7 @@ source (ulong addr, const char *fit_uname)
 /**************************************************/
 #if defined(CONFIG_CMD_SOURCE)
 int
-do_source (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+do_source (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        ulong addr;
        int rcode;
@@ -229,28 +229,11 @@ U_BOOT_CMD(
        "run script from memory",
        "[addr]\n"
        "\t- run script starting at addr\n"
-       "\t- A valid image header must be present\n"
+       "\t- A valid image header must be present"
 #if defined(CONFIG_FIT)
+       "\n"
        "For FIT format uImage addr must include subimage\n"
-       "unit name in the form of addr:<subimg_uname>\n"
+       "unit name in the form of addr:<subimg_uname>"
 #endif
 );
-
-/*
- * Keep for now for backward compatibility;
- * remove later when support for "autoscr" goes away.
- */
-static int
-do_autoscr (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
-{
-       printf ("\n### WARNING ### "
-               "\"autoscr\" is deprecated, use \"source\" instead ###\n\n");
-       return do_source (cmdtp, flag, argc, argv);
-}
-
-U_BOOT_CMD(
-       autoscr, 2, 0,  do_autoscr,
-       "DEPRECATED - use \"source\" command instead",
-       "DEPRECATED - use \"source\" command instead\n"
-);
 #endif