mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
ARM: rockchip: fiq-debugger: support status on DT
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user