diff options
| -rw-r--r-- | arch/arm/Kconfig | 6 | ||||
| -rw-r--r-- | arch/arm/Makefile | 2 | ||||
| -rw-r--r--[-rwxr-xr-x] | arch/arm/mach-at91/board-yl-9200.c | 0 | ||||
| -rw-r--r-- | arch/arm/plat-s3c24xx/Kconfig | 2 | ||||
| -rw-r--r-- | drivers/char/nwflash.c | 6 | ||||
| -rw-r--r-- | include/asm-arm/bitops.h | 9 | ||||
| -rw-r--r-- | include/asm-arm/pci.h | 8 |
7 files changed, 24 insertions, 9 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index dabb015aa40b..c8f528284a94 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
| @@ -314,7 +314,7 @@ config ARCH_IOP32X | |||
| 314 | select PLAT_IOP | 314 | select PLAT_IOP |
| 315 | select PCI | 315 | select PCI |
| 316 | select GENERIC_GPIO | 316 | select GENERIC_GPIO |
| 317 | select HAVE_GPIO_LIB | 317 | select ARCH_REQUIRE_GPIOLIB |
| 318 | help | 318 | help |
| 319 | Support for Intel's 80219 and IOP32X (XScale) family of | 319 | Support for Intel's 80219 and IOP32X (XScale) family of |
| 320 | processors. | 320 | processors. |
| @@ -325,7 +325,7 @@ config ARCH_IOP33X | |||
| 325 | select PLAT_IOP | 325 | select PLAT_IOP |
| 326 | select PCI | 326 | select PCI |
| 327 | select GENERIC_GPIO | 327 | select GENERIC_GPIO |
| 328 | select HAVE_GPIO_LIB | 328 | select ARCH_REQUIRE_GPIOLIB |
| 329 | help | 329 | help |
| 330 | Support for Intel's IOP33X (XScale) family of processors. | 330 | Support for Intel's IOP33X (XScale) family of processors. |
| 331 | 331 | ||
| @@ -418,7 +418,7 @@ config ARCH_MXC | |||
| 418 | select GENERIC_CLOCKEVENTS | 418 | select GENERIC_CLOCKEVENTS |
| 419 | select ARCH_MTD_XIP | 419 | select ARCH_MTD_XIP |
| 420 | select GENERIC_GPIO | 420 | select GENERIC_GPIO |
| 421 | select HAVE_GPIO_LIB | 421 | select ARCH_REQUIRE_GPIOLIB |
| 422 | help | 422 | help |
| 423 | Support for Freescale MXC/iMX-based family of processors | 423 | Support for Freescale MXC/iMX-based family of processors |
| 424 | 424 | ||
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index b20995a82e04..2f0747744236 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
| @@ -67,7 +67,7 @@ tune-$(CONFIG_CPU_ARM720T) :=-mtune=arm7tdmi | |||
| 67 | tune-$(CONFIG_CPU_ARM740T) :=-mtune=arm7tdmi | 67 | tune-$(CONFIG_CPU_ARM740T) :=-mtune=arm7tdmi |
| 68 | tune-$(CONFIG_CPU_ARM9TDMI) :=-mtune=arm9tdmi | 68 | tune-$(CONFIG_CPU_ARM9TDMI) :=-mtune=arm9tdmi |
| 69 | tune-$(CONFIG_CPU_ARM940T) :=-mtune=arm9tdmi | 69 | tune-$(CONFIG_CPU_ARM940T) :=-mtune=arm9tdmi |
| 70 | tune-$(CONFIG_CPU_ARM946T) :=$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi) | 70 | tune-$(CONFIG_CPU_ARM946E) :=$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi) |
| 71 | tune-$(CONFIG_CPU_ARM920T) :=-mtune=arm9tdmi | 71 | tune-$(CONFIG_CPU_ARM920T) :=-mtune=arm9tdmi |
| 72 | tune-$(CONFIG_CPU_ARM922T) :=-mtune=arm9tdmi | 72 | tune-$(CONFIG_CPU_ARM922T) :=-mtune=arm9tdmi |
| 73 | tune-$(CONFIG_CPU_ARM925T) :=-mtune=arm9tdmi | 73 | tune-$(CONFIG_CPU_ARM925T) :=-mtune=arm9tdmi |
diff --git a/arch/arm/mach-at91/board-yl-9200.c b/arch/arm/mach-at91/board-yl-9200.c index 7079050ab88d..7079050ab88d 100755..100644 --- a/arch/arm/mach-at91/board-yl-9200.c +++ b/arch/arm/mach-at91/board-yl-9200.c | |||
diff --git a/arch/arm/plat-s3c24xx/Kconfig b/arch/arm/plat-s3c24xx/Kconfig index 5e28c217b8c2..0af3872fb763 100644 --- a/arch/arm/plat-s3c24xx/Kconfig +++ b/arch/arm/plat-s3c24xx/Kconfig | |||
| @@ -9,7 +9,7 @@ config PLAT_S3C24XX | |||
| 9 | depends on ARCH_S3C2410 | 9 | depends on ARCH_S3C2410 |
| 10 | default y if ARCH_S3C2410 | 10 | default y if ARCH_S3C2410 |
| 11 | select NO_IOPORT | 11 | select NO_IOPORT |
| 12 | select HAVE_GPIO_LIB | 12 | select ARCH_REQUIRE_GPIOLIB |
| 13 | help | 13 | help |
| 14 | Base platform code for any Samsung S3C24XX device | 14 | Base platform code for any Samsung S3C24XX device |
| 15 | 15 | ||
diff --git a/drivers/char/nwflash.c b/drivers/char/nwflash.c index f9f72a211292..006be92ee3f3 100644 --- a/drivers/char/nwflash.c +++ b/drivers/char/nwflash.c | |||
| @@ -125,15 +125,15 @@ static ssize_t flash_read(struct file *file, char __user *buf, size_t size, | |||
| 125 | ssize_t ret; | 125 | ssize_t ret; |
| 126 | 126 | ||
| 127 | if (flashdebug) | 127 | if (flashdebug) |
| 128 | printk(KERN_DEBUG "flash_read: flash_read: offset=0x%lX, " | 128 | printk(KERN_DEBUG "flash_read: flash_read: offset=0x%llx, " |
| 129 | "buffer=%p, count=0x%X.\n", p, buf, count); | 129 | "buffer=%p, count=0x%zx.\n", *ppos, buf, size); |
| 130 | /* | 130 | /* |
| 131 | * We now lock against reads and writes. --rmk | 131 | * We now lock against reads and writes. --rmk |
| 132 | */ | 132 | */ |
| 133 | if (mutex_lock_interruptible(&nwflash_mutex)) | 133 | if (mutex_lock_interruptible(&nwflash_mutex)) |
| 134 | return -ERESTARTSYS; | 134 | return -ERESTARTSYS; |
| 135 | 135 | ||
| 136 | ret = simple_read_from_buffer(buf, size, ppos, FLASH_BASE, gbFlashSize); | 136 | ret = simple_read_from_buffer(buf, size, ppos, (void *)FLASH_BASE, gbFlashSize); |
| 137 | mutex_unlock(&nwflash_mutex); | 137 | mutex_unlock(&nwflash_mutex); |
| 138 | 138 | ||
| 139 | return ret; | 139 | return ret; |
diff --git a/include/asm-arm/bitops.h b/include/asm-arm/bitops.h index 5c60bfc1a84d..9a1db20e032a 100644 --- a/include/asm-arm/bitops.h +++ b/include/asm-arm/bitops.h | |||
| @@ -277,9 +277,16 @@ static inline int constant_fls(int x) | |||
| 277 | * the clz instruction for much better code efficiency. | 277 | * the clz instruction for much better code efficiency. |
| 278 | */ | 278 | */ |
| 279 | 279 | ||
| 280 | #define fls(x) \ | 280 | #define __fls(x) \ |
| 281 | ( __builtin_constant_p(x) ? constant_fls(x) : \ | 281 | ( __builtin_constant_p(x) ? constant_fls(x) : \ |
| 282 | ({ int __r; asm("clz\t%0, %1" : "=r"(__r) : "r"(x) : "cc"); 32-__r; }) ) | 282 | ({ int __r; asm("clz\t%0, %1" : "=r"(__r) : "r"(x) : "cc"); 32-__r; }) ) |
| 283 | |||
| 284 | /* Implement fls() in C so that 64-bit args are suitably truncated */ | ||
| 285 | static inline int fls(int x) | ||
| 286 | { | ||
| 287 | return __fls(x); | ||
| 288 | } | ||
| 289 | |||
| 283 | #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); }) | 290 | #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); }) |
| 284 | #define __ffs(x) (ffs(x) - 1) | 291 | #define __ffs(x) (ffs(x) - 1) |
| 285 | #define ffz(x) __ffs( ~(x) ) | 292 | #define ffz(x) __ffs( ~(x) ) |
diff --git a/include/asm-arm/pci.h b/include/asm-arm/pci.h index 75feb1574a69..2d84792f2e12 100644 --- a/include/asm-arm/pci.h +++ b/include/asm-arm/pci.h | |||
| @@ -78,6 +78,14 @@ pcibios_select_root(struct pci_dev *pdev, struct resource *res) | |||
| 78 | return root; | 78 | return root; |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | /* | ||
| 82 | * Dummy implementation; always return 0. | ||
| 83 | */ | ||
| 84 | static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) | ||
| 85 | { | ||
| 86 | return 0; | ||
| 87 | } | ||
| 88 | |||
| 81 | #endif /* __KERNEL__ */ | 89 | #endif /* __KERNEL__ */ |
| 82 | 90 | ||
| 83 | #endif | 91 | #endif |
