9
0
Fork 0

serial S3: fix local structure malloc

Patch 2c54046510 introduces a private structure
for the S3C based UARTs but still reserves the memory for the smaller
structure which fails at runtime.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Juergen Beisert 2012-03-12 14:57:59 +01:00 committed by Sascha Hauer
parent fea997985c
commit 069e1f45c8
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ static int s3c_serial_probe(struct device_d *dev)
struct s3c_uart *priv;
struct console_device *cdev;
priv = xzalloc(sizeof(struct console_device));
priv = xzalloc(sizeof(struct s3c_uart));
cdev = &priv->cdev;
priv->regs = dev_request_mem_region(dev, 0);
dev->priv = priv;