Commit 896ddd60 authored by Abhilash Kesavan's avatar Abhilash Kesavan Committed by Olof Johansson

drivers: bus: check cci device tree node status

The arm-cci driver completes the probe sequence even if the cci node is
marked as disabled. Add a check in the driver to honour the cci status
in the device tree.
Signed-off-by: default avatarAbhilash Kesavan <a.kesavan@samsung.com>
Acked-by: default avatarSudeep Holla <sudeep.holla@arm.com>
Acked-by: default avatarNicolas Pitre <nico@linaro.org>
Tested-by: default avatarSudeep Holla <sudeep.holla@arm.com>
Tested-by: default avatarKevin Hilman <khilman@linaro.org>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 6fda93b9
...@@ -1312,6 +1312,9 @@ static int cci_probe(void) ...@@ -1312,6 +1312,9 @@ static int cci_probe(void)
if (!np) if (!np)
return -ENODEV; return -ENODEV;
if (!of_device_is_available(np))
return -ENODEV;
cci_config = of_match_node(arm_cci_matches, np)->data; cci_config = of_match_node(arm_cci_matches, np)->data;
if (!cci_config) if (!cci_config)
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment