[PATCH 04/16] net: dm9000: Drop unused dump_regs()
Ramon Fried
rfried.dev at gmail.com
Tue Apr 12 21:46:36 CEST 2022
On Mon, Apr 11, 2022 at 8:56 PM Marek Vasut <marex at denx.de> wrote:
>
> Drop unused function dump_regs() because it is unused.
> No functional change.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Ramon Fried <rfried.dev at gmail.com>
> ---
> drivers/net/dm9000x.c | 17 -----------------
> 1 file changed, 17 deletions(-)
>
> diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c
> index a99a901e828..223df944a48 100644
> --- a/drivers/net/dm9000x.c
> +++ b/drivers/net/dm9000x.c
> @@ -122,23 +122,6 @@ static void dm9000_iow(int reg, u8 value);
> #define dm9000_inl(r) __raw_readl(r)
> #endif
>
> -#ifdef CONFIG_DM9000_DEBUG
> -static void
> -dump_regs(void)
> -{
> - debug("\n");
> - debug("NCR (0x00): %02x\n", dm9000_ior(0));
> - debug("NSR (0x01): %02x\n", dm9000_ior(1));
> - debug("TCR (0x02): %02x\n", dm9000_ior(2));
> - debug("TSRI (0x03): %02x\n", dm9000_ior(3));
> - debug("TSRII (0x04): %02x\n", dm9000_ior(4));
> - debug("RCR (0x05): %02x\n", dm9000_ior(5));
> - debug("RSR (0x06): %02x\n", dm9000_ior(6));
> - debug("ISR (0xFE): %02x\n", dm9000_ior(DM9000_ISR));
> - debug("\n");
> -}
> -#endif
> -
> static void dm9000_outblk_8bit(volatile void *data_ptr, int count)
> {
> int i;
> --
> 2.35.1
>
Reviewed-by: Ramon Fried <rfried.dev at gmail.com>
More information about the U-Boot
mailing list