summaryrefslogtreecommitdiffstats
path: root/drivers/serial/linux_console.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:02:18 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:02:18 +0200
commitd07a1b08f6445e4e13765c9f6bb4fdd957b653bf (patch)
treee5794950eb3ef2d503a1c04fe15ab159dfb6a3f1 /drivers/serial/linux_console.c
parentb165a680c33dae8bf10a163626b57247b35f4824 (diff)
downloadbarebox-d07a1b08f6445e4e13765c9f6bb4fdd957b653bf.tar.gz
barebox-d07a1b08f6445e4e13765c9f6bb4fdd957b653bf.tar.xz
svn_rev_697
use xzalloc
Diffstat (limited to 'drivers/serial/linux_console.c')
-rw-r--r--drivers/serial/linux_console.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/serial/linux_console.c b/drivers/serial/linux_console.c
index eab2f5c3be..df826284cc 100644
--- a/drivers/serial/linux_console.c
+++ b/drivers/serial/linux_console.c
@@ -4,6 +4,7 @@
#include <asm/arch/linux.h>
#include <malloc.h>
#include <console.h>
+#include <xfuncs.h>
static void linux_console_putc(struct console_device *cdev, char c)
{
@@ -37,7 +38,7 @@ static int linux_console_probe(struct device_d *dev)
struct console_device *cdev;
struct linux_console_data *data = dev->platform_data;
- cdev = malloc(sizeof(struct console_device));
+ cdev = xzalloc(sizeof(struct console_device));
dev->type_data = cdev;
cdev->dev = dev;
cdev->f_caps = data->flags;