projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebd3cad
)
ARM: rockchip: fiq-debugger: support status on DT
author
黄涛
<huangtao@rock-chips.com>
Thu, 5 Dec 2013 02:45:21 +0000
(10:45 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Thu, 5 Dec 2013 02:45:21 +0000
(10:45 +0800)
arch/arm/mach-rockchip/rk_fiq_debugger.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rockchip/rk_fiq_debugger.c
b/arch/arm/mach-rockchip/rk_fiq_debugger.c
index 99397cd5dca62c56df8794116e654118b69703ac..b8f37f221e95ece4f0b9667a6bcf39339cf299e7 100644
(file)
--- 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;
}