PCI: rcar: Add runtime PM support
authorValentine Barshak <valentine.barshak@cogentembedded.com>
Wed, 4 Dec 2013 16:33:35 +0000 (20:33 +0400)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 9 Dec 2013 23:24:37 +0000 (16:24 -0700)
commitfb178d8b2fab3f2a9f203c13ffe80cfd6e01bdf1
tree5d6c1a088da4b1ce64eaa1d26d8a0a4e53940232
parentc176d1c71bd18238e5d77d6acc6b991aa6a17f3b
PCI: rcar: Add runtime PM support

If runtime PM is enabled in the kernel config, the PCI clocks are not
forced on at start-up, and thus, are never enabled.  Use
pm_runtime_get_sync() to enable the clocks.

While at it, use dev_info() instead of pr_info() since now we have the
device pointer available in the PCI setup callback.

Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-rcar-gen2.c