]> err.no Git - linux-2.6/blobdiff - drivers/serial/amba-pl011.c
spi_mpc83xx: support for lsb-first transfers
[linux-2.6] / drivers / serial / amba-pl011.c
index 954073c6ce3a4e5cccb7df1806575fc1778cbc2c..72229df9dc111754a74de5b1e3fb4eb896d8768e 100644 (file)
@@ -716,7 +716,7 @@ static int pl011_probe(struct amba_device *dev, void *id)
                goto out;
        }
 
-       uap = kmalloc(sizeof(struct uart_amba_port), GFP_KERNEL);
+       uap = kzalloc(sizeof(struct uart_amba_port), GFP_KERNEL);
        if (uap == NULL) {
                ret = -ENOMEM;
                goto out;
@@ -728,7 +728,6 @@ static int pl011_probe(struct amba_device *dev, void *id)
                goto free;
        }
 
-       memset(uap, 0, sizeof(struct uart_amba_port));
        uap->clk = clk_get(&dev->dev, "UARTCLK");
        if (IS_ERR(uap->clk)) {
                ret = PTR_ERR(uap->clk);