PCI: imx6: Use gpio_set_value_cansleep()
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 27 Oct 2015 23:41:58 +0000 (21:41 -0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 25 Nov 2015 17:33:05 +0000 (11:33 -0600)
commitbd534e691adada9697b47b6c27acbca611c6fad4
tree6b974a44a3748bd0ea1f99024e1264ed8e520ff8
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4
PCI: imx6: Use gpio_set_value_cansleep()

We are in a context where we can sleep, and the PCIe reset gpio may be on
an I2C expander.  Use the cansleep() variant when setting the GPIO value.

Based on a patch from Russell King for pci-mvebu.c.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
drivers/pci/host/pci-imx6.c