Skip to content

Commit

Permalink
parisc: Drop duplicate kgdb_pdc console
Browse files Browse the repository at this point in the history
commit 7e6652c upstream.

The kgdb console is already implemented and registered in pdc_cons.c,
so the duplicate code can be dropped.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org> # 6.1+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
hdeller authored and gregkh committed Jan 7, 2023
1 parent d97a584 commit 790aba4
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions arch/parisc/kernel/kgdb.c
Expand Up @@ -208,23 +208,3 @@ int kgdb_arch_handle_exception(int trap, int signo,
}
return -1;
}

/* KGDB console driver which uses PDC to read chars from keyboard */

static void kgdb_pdc_write_char(u8 chr)
{
/* no need to print char. kgdb will do it. */
}

static struct kgdb_io kgdb_pdc_io_ops = {
.name = "kgdb_pdc",
.read_char = pdc_iodc_getc,
.write_char = kgdb_pdc_write_char,
};

static int __init kgdb_pdc_init(void)
{
kgdb_register_io_module(&kgdb_pdc_io_ops);
return 0;
}
early_initcall(kgdb_pdc_init);

0 comments on commit 790aba4

Please sign in to comment.