summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2013-12-09 09:51:33 +0100
committerStefan Agner <stefan.agner@toradex.com>2013-12-09 09:51:33 +0100
commitb152ee75889e65175e78fa3e46b45f8468bf9684 (patch)
tree8c2883617dd3fa2b1672805b5e970b2812d47bd6 /arch/arm
parent498b2cf3874ff5a5ac77713c4e16af87bf979450 (diff)
tegra: pcie: use integer for root_bus_nr
The drivers internal root_bus_nr used to be u8 which lead to a wrong error detection in bus_to_port. Bus number can be -1 in case bus is not scanned yet. Thanks to James pointing that out.
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-tegra/pcie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/pcie.c b/arch/arm/mach-tegra/pcie.c
index 6233e50709f2..efeb2c48277e 100644
--- a/arch/arm/mach-tegra/pcie.c
+++ b/arch/arm/mach-tegra/pcie.c
@@ -289,7 +289,7 @@
struct tegra_pcie_port {
int index;
- u8 root_bus_nr;
+ int root_bus_nr;
void __iomem *base;
bool link_up;