diff options
Diffstat (limited to 'arch/powerpc/boot/mpc52xx-psc.c')
-rw-r--r-- | arch/powerpc/boot/mpc52xx-psc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/powerpc/boot/mpc52xx-psc.c b/arch/powerpc/boot/mpc52xx-psc.c index 1074626e6a37..d4cb4e4e0938 100644 --- a/arch/powerpc/boot/mpc52xx-psc.c +++ b/arch/powerpc/boot/mpc52xx-psc.c | |||
@@ -51,14 +51,9 @@ static unsigned char psc_getc(void) | |||
51 | 51 | ||
52 | int mpc5200_psc_console_init(void *devp, struct serial_console_data *scdp) | 52 | int mpc5200_psc_console_init(void *devp, struct serial_console_data *scdp) |
53 | { | 53 | { |
54 | int n; | ||
55 | |||
56 | /* Get the base address of the psc registers */ | 54 | /* Get the base address of the psc registers */ |
57 | n = getprop(devp, "virtual-reg", &psc, sizeof(psc)); | 55 | if (dt_get_virtual_reg(devp, &psc, 1) < 1) |
58 | if (n != sizeof(psc)) { | 56 | return -1; |
59 | if (!dt_xlate_reg(devp, 0, (void *)&psc, NULL)) | ||
60 | return -1; | ||
61 | } | ||
62 | 57 | ||
63 | scdp->open = psc_open; | 58 | scdp->open = psc_open; |
64 | scdp->putc = psc_putc; | 59 | scdp->putc = psc_putc; |