OSDN Git Service

PCI: armada8k: Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@nxp.com>
Sat, 22 Jul 2017 20:25:19 +0000 (17:25 -0300)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 3 Aug 2017 22:01:55 +0000 (17:01 -0500)
commite2e5d7bf9ba68e2ed0c70e10892472a8dd9ed9c2
tree86bb25e899f1fbf2872204d3bb82c5dd7ac6dbff
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973
PCI: armada8k: Check the return value from clk_prepare_enable()

clk_prepare_enable() may fail, so check its return value and propagate it
in the case of error.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
drivers/pci/dwc/pcie-armada8k.c