]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commitdiff
[ARM] 3380/1: ixp2000: simplify ixdp2x00_master_npu() check
authorLennert Buytenhek <buytenh@wantstofly.org>
Wed, 22 Mar 2006 20:14:11 +0000 (20:14 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 22 Mar 2006 20:14:11 +0000 (20:14 +0000)
Patch from Lennert Buytenhek

On the IXDP2x00s, the NPU that is PCI master is always the egress
(i.e. 'master') NPU.  At least on the IXDP2800, both NPUs have flash,
so the ixp2000_has_flash() check in ixdp2x00_master_npu() is useless.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-ixp2000/ixdp2x00.h

index 229381c64283ae7c0605d0138c03dc12ee1789e8..546e2e8e27b890b17f8a27e7519c8ff3c47f2e68 100644 (file)
 
 #ifndef __ASSEMBLY__
 /*
- * Master NPU will always have flash and be PCI master.
- * Slave NPU may or may not have flash but will never be PCI master.
+ * The master NPU is always PCI master.
  */
 static inline unsigned int ixdp2x00_master_npu(void)
 {
-       return ((ixp2000_has_flash()) && (ixp2000_is_pcimaster()));
+       return !!ixp2000_is_pcimaster();
 }
 
 /*