Commit c3539516 authored by Fabio Estevam's avatar Fabio Estevam Committed by Bjorn Helgaas
Browse files

PCI: mvebu: Remove unneeded gpiod NULL check



The gpiod API checks for NULL descriptors, so there is no need to duplicate
the check in the driver.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 16f73eb0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1186,7 +1186,6 @@ static int mvebu_pcie_powerup(struct mvebu_pcie_port *port)
 */
static void mvebu_pcie_powerdown(struct mvebu_pcie_port *port)
{
	if (port->reset_gpio)
	gpiod_set_value_cansleep(port->reset_gpio, 1);

	clk_disable_unprepare(port->clk);