net: hns: fixes no syscon error when init mdio
authoryankejian <yankejian@huawei.com>
Wed, 13 Jan 2016 07:09:59 +0000 (15:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jan 2016 19:40:03 +0000 (14:40 -0500)
As dtsi files use the normal naming conventions using '-' instead of '_'
inside of property names, the driver needs to update the phandle name
strings of the of_parse_phandle func.

Signed-off-by: Kejian Yan <yankejian@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns_mdio.c

index 58c96c412fe896572202affbe0227f9cffcd7ee3..765ddb3dcd1a0aae1db55729ff3de497196cb771 100644 (file)
@@ -458,7 +458,7 @@ static int hns_mdio_probe(struct platform_device *pdev)
        }
 
        mdio_dev->subctrl_vbase =
-               syscon_node_to_regmap(of_parse_phandle(np, "subctrl_vbase", 0));
+               syscon_node_to_regmap(of_parse_phandle(np, "subctrl-vbase", 0));
        if (IS_ERR(mdio_dev->subctrl_vbase)) {
                dev_warn(&pdev->dev, "no syscon hisilicon,peri-c-subctrl\n");
                mdio_dev->subctrl_vbase = NULL;