MLK-21682-3 soc: imx: gpc-psci: Use reg property instead of domain-id
authorLeonard Crestez <leonard.crestez@nxp.com>
Wed, 8 May 2019 22:16:37 +0000 (01:16 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Fri, 10 May 2019 12:41:44 +0000 (15:41 +0300)
We can use the standard DT "reg" property instead of defining our
own "domain-id"

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Jacky Bai <ping.bai@nxp.com>
drivers/soc/imx/gpc-psci.c

index d3867e1..d91929c 100644 (file)
@@ -318,7 +318,7 @@ static int imx8m_add_subdomain(struct device_node *parent,
                if (ret)
                        goto exit;
 
-               ret = of_property_read_u32(child_node, "domain-id",
+               ret = of_property_read_u32(child_node, "reg",
                                           &child_domain->gpc_domain_id);
                if (ret)
                        goto exit;
@@ -371,7 +371,7 @@ static int imx_gpc_pm_domain_probe(struct platform_device *pdev)
                return -EINVAL;
        }
 
-       ret = of_property_read_u32(np, "domain-id", &imx_pm_domain->gpc_domain_id);
+       ret = of_property_read_u32(np, "reg", &imx_pm_domain->gpc_domain_id);
        if (ret) {
                dev_err(dev, "get domain id failed\n");
                return -EINVAL;