X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=cmd%2Freginfo.c;h=de94dd8071cc8ed10376cc77f6ae02a24fb916d4;hb=HEAD;hp=8e4bec8c4be5423e29edfac4211e22d5e03a87ff;hpb=7e09145ea2e985511c660bdf567b61614acd75b3;p=u-boot diff --git a/cmd/reginfo.c b/cmd/reginfo.c index 8e4bec8c4b..de94dd8071 100644 --- a/cmd/reginfo.c +++ b/cmd/reginfo.c @@ -1,37 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Subodh Nijsure, SkyStream Networks, snijsure@skystream.com - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include -#if defined(CONFIG_MPC86xx) -extern void mpc86xx_reginfo(void); -#elif defined(CONFIG_MPC85xx) -extern void mpc85xx_reginfo(void); -#endif +#include static int do_reginfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { -#if defined(CONFIG_MPC86xx) - mpc86xx_reginfo(); - -#elif defined(CONFIG_MPC85xx) - mpc85xx_reginfo(); -#endif + print_reginfo(); return 0; } /**************************************************/ -#if defined(CONFIG_CMD_REGINFO) U_BOOT_CMD( reginfo, 2, 1, do_reginfo, "print register information", "" ); -#endif