Skip to content

Commit 896ddd6

Browse files
Abhilash Kesavanolofj
authored andcommitted
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: Abhilash Kesavan <a.kesavan@samsung.com> Acked-by: Sudeep Holla <sudeep.holla@arm.com> Acked-by: Nicolas Pitre <nico@linaro.org> Tested-by: Sudeep Holla <sudeep.holla@arm.com> Tested-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net>
1 parent 6fda93b commit 896ddd6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/bus/arm-cci.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,9 @@ static int cci_probe(void)
13121312
if (!np)
13131313
return -ENODEV;
13141314

1315+
if (!of_device_is_available(np))
1316+
return -ENODEV;
1317+
13151318
cci_config = of_match_node(arm_cci_matches, np)->data;
13161319
if (!cci_config)
13171320
return -ENODEV;

0 commit comments

Comments
 (0)