projects/linux·commit dd41bf91

Merge master.kernel.org:/home/rmk/linux-2.6-arm

dd41bf91 · Linus Torvalds <[email protected]> · 2005-10-26 14:01:57 -07:00

Commit
dd41bf916609ae9d2d3ffbb56cfe0a6edd7d1e07
Parents
70ab81c2 · 7edc24c4

Merge commit. Changes below are compared with the first parent: 70ab81c2.

Changes

2 files changed · +2 −1

FileStatusAddDelContent
arch/arm/mach-pxa/corgi_lcd.cmodified+2−0View file
include/asm-arm/bitops.hmodified+0−1View file

arch/arm/mach-pxa/corgi_lcd.c

View file
diff --git a/arch/arm/mach-pxa/corgi_lcd.c b/arch/arm/mach-pxa/corgi_lcd.c
index 850538f..370df11 100644
--- a/arch/arm/mach-pxa/corgi_lcd.c
+++ b/arch/arm/mach-pxa/corgi_lcd.c
@@ -488,6 +488,7 @@ static int is_pxafb_device(struct device * dev, void * data)
unsigned long spitz_get_hsync_len(void)
{
+#ifdef CONFIG_FB_PXA
if (!spitz_pxafb_dev) {
spitz_pxafb_dev = bus_find_device(&platform_bus_type, NULL, NULL, is_pxafb_device);
if (!spitz_pxafb_dev)
@@ -496,6 +497,7 @@ unsigned long spitz_get_hsync_len(void)
if (!get_hsync_time)
get_hsync_time = symbol_get(pxafb_get_hsync_time);
if (!get_hsync_time)
+#endif
return 0;
return pxafb_get_hsync_time(spitz_pxafb_dev);

include/asm-arm/bitops.h

View file
diff --git a/include/asm-arm/bitops.h b/include/asm-arm/bitops.h
index aad7aad..e007dd9 100644
--- a/include/asm-arm/bitops.h
+++ b/include/asm-arm/bitops.h
@@ -347,7 +347,6 @@ static inline unsigned long __ffs(unsigned long word)
* the clz instruction for much better code efficiency.
*/
-static __inline__ int generic_fls(int x);
#define fls(x) \
( __builtin_constant_p(x) ? generic_fls(x) : \
({ int __r; asm("clz\t%0, %1" : "=r"(__r) : "r"(x) : "cc"); 32-__r; }) )