aboutsummaryrefslogtreecommitdiffstats
path: root/xen/drivers/char
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@linaro.org>2013-05-22 12:43:12 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-05-23 12:55:17 +0100
commit7312c21dbd3f5026f087ba72c4e36754f1921762 (patch)
tree6ad9bf48fd8bb633c63d7d0330ca4e15747fa3ad /xen/drivers/char
parent9f5179a4ecafd9a15e0a066e0f935ded681bf997 (diff)
downloadxen-7312c21dbd3f5026f087ba72c4e36754f1921762.tar.gz
xen-7312c21dbd3f5026f087ba72c4e36754f1921762.tar.bz2
xen-7312c21dbd3f5026f087ba72c4e36754f1921762.zip
drivers/exynos4210: Return -ENOMEM when ioremap has failed
Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/drivers/char')
-rw-r--r--xen/drivers/char/exynos4210-uart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/drivers/char/exynos4210-uart.c b/xen/drivers/char/exynos4210-uart.c
index f151390352..f7971da73b 100644
--- a/xen/drivers/char/exynos4210-uart.c
+++ b/xen/drivers/char/exynos4210-uart.c
@@ -328,6 +328,7 @@ static int __init exynos4210_uart_init(struct dt_device_node *dev,
if ( !uart->regs )
{
early_printk("exynos4210: Unable to map the UART memory\n");
+ return -ENOMEM;
}
res = dt_device_get_irq(dev, 0, &uart->irq);
if ( res )