summaryrefslogtreecommitdiffstats
path: root/drivers/serial/amba-pl011.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-09-20 05:31:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-21 09:59:16 +0200
commite62d4255172540805a77fee1c58382103f43bb2f (patch)
tree0ddacc55738ce750d1164501cfd30ed1b6ab7120 /drivers/serial/amba-pl011.c
parentfe4117357f8f304a08b957eded8ede9db8dafdcf (diff)
downloadbarebox-e62d4255172540805a77fee1c58382103f43bb2f.tar.gz
barebox-e62d4255172540805a77fee1c58382103f43bb2f.tar.xz
console: drop f_caps and check the function pointer getc/putc instead
None of the driver make the difference between STDOUT and STDERR. So we just need to check if putc or getc are filled in the console_device save 32 bytes on versatilepb Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial/amba-pl011.c')
-rw-r--r--drivers/serial/amba-pl011.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c
index 0e075880e0..0f384e5974 100644
--- a/drivers/serial/amba-pl011.c
+++ b/drivers/serial/amba-pl011.c
@@ -196,7 +196,6 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id)
cdev = &uart->uart;
cdev->dev = &dev->dev;
- cdev->f_caps = CONSOLE_STDIN | CONSOLE_STDOUT | CONSOLE_STDERR;
cdev->tstc = pl011_tstc;
cdev->putc = pl011_putc;
cdev->getc = pl011_getc;