From: 黄涛 Date: Thu, 5 Dec 2013 02:45:21 +0000 (+0800) Subject: ARM: rockchip: fiq-debugger: support status on DT X-Git-Tag: firefly_0821_release~6457 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ffbd8425006bcc81983cad98585f4b50d306e81e;p=firefly-linux-kernel-4.4.55.git ARM: rockchip: fiq-debugger: support status on DT --- diff --git a/arch/arm/mach-rockchip/rk_fiq_debugger.c b/arch/arm/mach-rockchip/rk_fiq_debugger.c index 99397cd5dca6..b8f37f221e95 100644 --- a/arch/arm/mach-rockchip/rk_fiq_debugger.c +++ b/arch/arm/mach-rockchip/rk_fiq_debugger.c @@ -306,7 +306,12 @@ static int __init rk_fiq_debugger_init(void) { printk("fiq-debugger is missing in device tree!\n"); return -ENODEV; } - + + if (!of_device_is_available(np)) { + printk("fiq-debugger is disabled in device tree\n"); + return -ENODEV; + } + if (of_property_read_u32(np, "serial-id", &serial_id)) { return -EINVAL; }