summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2014-11-27 13:02:53 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2014-12-03 13:40:29 +0100
commitfc60b04ba24a5d5ad424bc487c726500f6db1f25 (patch)
tree19526da52eabcc4f0d6b1c1ae4fd5c0a3f89bd7a
parent34c016f7c96b1c7ad413b9fbebb90b08066688fa (diff)
pci-imx6.c: remove compiler warning
-rw-r--r--drivers/pci/host/pci-imx6.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c
index 485dc8689879..e153932ea677 100644
--- a/drivers/pci/host/pci-imx6.c
+++ b/drivers/pci/host/pci-imx6.c
@@ -368,8 +368,10 @@ static int imx6_pcie_start_link(struct pcie_port *pp)
{
struct imx6_pcie *imx6_pcie = to_imx6_pcie(pp);
uint32_t tmp;
- int ret, count;
-
+ int ret;
+#ifndef CONFIG_PCI_FORCE_GEN1
+ int count;
+#endif
/*
* Force Gen1 operation when starting the link. In case the link is
* started in Gen2 mode, there is a possibility the devices on the