]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/ppc/mm/pgtable.c
ARM: OMAP: OSK led fixes
[linux-2.6-omap-h63xx.git] / arch / ppc / mm / pgtable.c
index 354a9408f02436b83ac8204d8a854686c675e264..c023b7298809b282639168eb2125f4e9d3218de0 100644 (file)
@@ -313,11 +313,8 @@ void __init mapin_ram(void)
        }
 }
 
-/* is x a power of 2? */
-#define is_power_of_2(x)       ((x) != 0 && (((x) & ((x) - 1)) == 0))
-
 /* is x a power of 4? */
-#define is_power_of_4(x)       ((x) != 0 && (((x) & (x-1)) == 0) && (ffs(x) & 1))
+#define is_power_of_4(x)       is_power_of_2(x) && (ffs(x) & 1)
 
 /*
  * Set up a mapping for a block of I/O.