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

Commit 84f47190 authored by Andrew Lunn's avatar Andrew Lunn Committed by Bjorn Helgaas
Browse files

PCI: mvebu: Remove duplicate of_clk_get_by_name() call



Probably due to a merge conflict resolution gone bad, the PCI clock is
got twice.  Remove the redundant call of of_clk_get_by_name().

Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 641e674d
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -981,14 +981,6 @@ static int mvebu_pcie_probe(struct platform_device *pdev)

		mvebu_pcie_set_local_dev_nr(port, 1);

		port->clk = of_clk_get_by_name(child, NULL);
		if (IS_ERR(port->clk)) {
			dev_err(&pdev->dev, "PCIe%d.%d: cannot get clock\n",
			       port->port, port->lane);
			iounmap(port->base);
			continue;
		}

		port->dn = child;
		spin_lock_init(&port->conf_lock);
		mvebu_sw_pci_bridge_init(port);