Allows to disable domains in the DT, as we don't need all of them in Barebox. Signed-off-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx> --- drivers/soc/imx/gpcv2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c index bc373ecf40cc..7d33e8297829 100644 --- a/drivers/soc/imx/gpcv2.c +++ b/drivers/soc/imx/gpcv2.c @@ -449,6 +449,10 @@ static int imx_gpcv2_probe(struct device_d *dev) struct device_d *pd_dev; struct imx_pgc_domain *domain; u32 domain_index; + + if (!of_device_is_available(np)) + continue; + ret = of_property_read_u32(np, "reg", &domain_index); if (ret) { dev_err(dev, "Failed to read 'reg' property\n"); -- 2.20.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox