[adm5120] fix compiler warning
[openwrt.git] / target / linux / adm5120 / files / include / asm-mips / mach-adm5120 / adm5120_switch.h
index bc9b6f6..2dbb097 100644 (file)
 #ifndef _ADM5120_SWITCH_H_
 #define _ADM5120_SWITCH_H_
 
-#define BIT(at)                (1 << (at))
-#define BITMASK(len)   ((1 << (len))-1)
+#ifndef BIT
+#  define BIT(at)      (1 << (at))
+#endif
+#define BITMASK(len)   (BIT(len)-1)
 
 #define SW_READ_REG(r)         __raw_readl( \
        (void __iomem *)KSEG1ADDR(ADM5120_SWITCH_BASE) + r)
This page took 0.029404 seconds and 4 git commands to generate.