cosmetic fix: make the pci slot check more readable
authorFelix Fietkau <nbd@openwrt.org>
Tue, 19 Dec 2006 22:06:09 +0000 (22:06 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 19 Dec 2006 22:06:09 +0000 (22:06 +0000)
SVN-Revision: 5862

target/linux/rb532-2.6/patches/100-rb5xx_support.patch

index 45c8fe3b9068ea8a66abd66008782242d363a40c..c5c5ca932308ed5a3e37505c5c7f841b39e39503 100644 (file)
@@ -245,7 +245,7 @@ diff -urN linux.old/arch/mips/pci/ops-rc32434.c linux.dev/arch/mips/pci/ops-rc32
 +      int ret;
 +      int delay = 1;
 +
-+      if (bus->number == 0 && (devfn >> 3) > 21)
++      if (bus->number == 0 && PCI_SLOT(devfn) > 21)
 +              return 0;
 +
 +retry: