PCI: rockchip: Factor out rockchip_pcie_enable_clocks()
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 23 Aug 2017 07:02:19 +0000 (15:02 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Aug 2017 18:18:07 +0000 (13:18 -0500)
commit09df7bc40a15823e1b3e30135fc0f22eb97a0abb
tree144acfec35c8f885a5af3ff757b93459e53152bf
parent6341f8052ea41c8fa9e28bb2f12864b90f470360
PCI: rockchip: Factor out rockchip_pcie_enable_clocks()

Factor out rockchip_pcie_enable_clocks() so it can be reused by
rockchip_pcie_resume_noirq() and rockchip_pcie_probe().

No functional change intended, but it does change the order of unpreparing
clocks in the rockchip_pcie_resume_noirq() error path.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-rockchip.c