X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fserial%2Fmpc52xx_uart.c;h=900f7bb51de927a25b42f29244f16e248c013084;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=3feba05b4e2f736b7206b1f9167f06b56a5e95c4;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c index 3feba05b4..900f7bb51 100644 --- a/drivers/serial/mpc52xx_uart.c +++ b/drivers/serial/mpc52xx_uart.c @@ -640,7 +640,7 @@ mpc52xx_console_setup(struct console *co, char *options) /* Basic port init. Needed since we use some uart_??? func before * real init for early access */ - port->lock = SPIN_LOCK_UNLOCKED; + spin_lock_init(&port->lock); port->uartclk = __res.bi_ipbfreq / 2; /* Look at CTLR doc */ port->ops = &mpc52xx_uart_ops; port->mapbase = MPC52xx_PSCx(co->index); @@ -724,7 +724,7 @@ mpc52xx_uart_probe(struct ocp_device *ocp) port = &mpc52xx_uart_ports[idx]; /* Init the port structure */ - port->lock = SPIN_LOCK_UNLOCKED; + spin_lock_init(&port->lock); port->mapbase = ocp->def->paddr; port->irq = ocp->def->irq; port->uartclk = __res.bi_ipbfreq / 2; /* Look at CTLR doc */