PCI: rcar: Factor out rcar_pcie_hw_init() call
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 3 May 2018 19:43:13 +0000 (22:43 +0300)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 4 May 2018 09:25:30 +0000 (10:25 +0100)
commit9d5014e90e6d62eabe03946dbba27076b77b31e1
tree374c1d761bef821878d830c53e1c7cba0e5fae9e
parent517ca93a7159eb94eeef829f6ca036456050115c
PCI: rcar: Factor out rcar_pcie_hw_init() call

rcar_pcie_hw_init_{h1|gen2|gen3}() only differ in the PCIe PHY init code
and all end with a call to rcar_pcie_hw_init(), thus it makes sense to
move that call into the driver's probe() method and then rename those
functions to rcar_pcie_phy_init_{h1|gen2|gen3}().

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
drivers/pci/host/pcie-rcar.c