From abd4802655f91ae3fecfa6f61240162ff22fa712 Mon Sep 17 00:00:00 2001 From: Youngmin Nam Date: Tue, 1 Dec 2015 10:09:49 +0900 Subject: [PATCH] serial: samsung: fix prevent defects in serial driver This patch fixes prevent defects in serial drvier. The "qos_timeout" value should be read as unsigned long type. Change-Id: Ib335fcbd4580e034d97221827545b8072e5c13b8 Signed-off-by: Youngmin Nam --- drivers/tty/serial/samsung.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index 6ae5d43e4be1..32ff12cada86 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -1594,8 +1594,8 @@ static int s3c24xx_serial_probe(struct platform_device *pdev) &ourport->uart_irq_affinity)) ourport->uart_irq_affinity = 0; - if (of_property_read_u32(pdev->dev.of_node, "qos_timeout", - (u32 *)&ourport->qos_timeout)) + if (of_property_read_u64(pdev->dev.of_node, "qos_timeout", + (u64 *)&ourport->qos_timeout)) ourport->qos_timeout = 0; if ((ourport->mif_qos_val || ourport->cpu_qos_val) -- 2.20.1