diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2014-11-27 13:02:53 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2015-05-29 13:43:43 +0200 |
commit | 43a10d1acd5be05565820525055ced761e51a725 (patch) | |
tree | 025b04c9da5a95f63365b27f1354bced2ab7637b | |
parent | 4035db8b5d40179c0972929ba434c1c4385707e2 (diff) |
pci-imx6.c: remove compiler warning
-rw-r--r-- | drivers/pci/host/pci-imx6.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c index 1c781f94c538..b07238b9068f 100644 --- a/drivers/pci/host/pci-imx6.c +++ b/drivers/pci/host/pci-imx6.c @@ -467,8 +467,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 |