summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authoryankejian <yankejian@huawei.com>2016-01-13 07:09:59 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-01-15 19:40:03 (GMT)
commit28052e75834a84b006893735debedb8ee6b6cbc0 (patch)
tree90d57803a4e5bbb6968fb42f4192530f827439d8 /drivers
parentb70ce2ab41cb67ab3d661eda078f7c4029bbca95 (diff)
downloadlinux-28052e75834a84b006893735debedb8ee6b6cbc0.tar.xz
net: hns: fixes no syscon error when init mdio
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/hisilicon/hns_mdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns_mdio.c b/drivers/net/ethernet/hisilicon/hns_mdio.c
index 58c96c4..765ddb3 100644
--- a/drivers/net/ethernet/hisilicon/hns_mdio.c
+++ b/drivers/net/ethernet/hisilicon/hns_mdio.c
@@ -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;