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:
parent
fea997985c
commit
069e1f45c8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue