Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac9ba7dc authored by Rob Herring's avatar Rob Herring Committed by Kishon Vijay Abraham I
Browse files

phy: Convert to using %pOFn instead of device_node.name



In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent fcd0eec4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -153,8 +153,8 @@ static int cygnus_pcie_phy_probe(struct platform_device *pdev)
		struct cygnus_pcie_phy *p;

		if (of_property_read_u32(child, "reg", &id)) {
			dev_err(dev, "missing reg property for %s\n",
				child->name);
			dev_err(dev, "missing reg property for %pOFn\n",
				child);
			ret = -EINVAL;
			goto put_child;
		}
+2 −2
Original line number Diff line number Diff line
@@ -600,8 +600,8 @@ static int brcm_sata_phy_probe(struct platform_device *pdev)
		struct brcm_sata_port *port;

		if (of_property_read_u32(child, "reg", &id)) {
			dev_err(dev, "missing reg property in node %s\n",
					child->name);
			dev_err(dev, "missing reg property in node %pOFn\n",
					child);
			ret = -EINVAL;
			goto put_child;
		}
+3 −3
Original line number Diff line number Diff line
@@ -231,14 +231,14 @@ static int phy_berlin_sata_probe(struct platform_device *pdev)
		struct phy_berlin_desc *phy_desc;

		if (of_property_read_u32(child, "reg", &phy_id)) {
			dev_err(dev, "missing reg property in node %s\n",
				child->name);
			dev_err(dev, "missing reg property in node %pOFn\n",
				child);
			ret = -EINVAL;
			goto put_child;
		}

		if (phy_id >= ARRAY_SIZE(phy_berlin_power_down_bits)) {
			dev_err(dev, "invalid reg in node %s\n", child->name);
			dev_err(dev, "invalid reg in node %pOFn\n", child);
			ret = -EINVAL;
			goto put_child;
		}
+1 −1
Original line number Diff line number Diff line
@@ -1400,7 +1400,7 @@ static int phy_pipe_clk_register(struct qcom_qmp *qmp, struct device_node *np)

	ret = of_property_read_string(np, "clock-output-names", &init.name);
	if (ret) {
		dev_err(qmp->dev, "%s: No clock-output-names\n", np->name);
		dev_err(qmp->dev, "%pOFn: No clock-output-names\n", np);
		return ret;
	}

+2 −2
Original line number Diff line number Diff line
@@ -337,8 +337,8 @@ static int rockchip_emmc_phy_probe(struct platform_device *pdev)
		return -ENOMEM;

	if (of_property_read_u32(dev->of_node, "reg", &reg_offset)) {
		dev_err(dev, "missing reg property in node %s\n",
			dev->of_node->name);
		dev_err(dev, "missing reg property in node %pOFn\n",
			dev->of_node);
		return -EINVAL;
	}

Loading