diff options
Diffstat (limited to 'arch/arm')
103 files changed, 318 insertions, 1013 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index d6ebe39934b5..dbfdf87f993f 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -1325,6 +1325,8 @@ source "drivers/regulator/Kconfig" | |||
1325 | 1325 | ||
1326 | source "drivers/uio/Kconfig" | 1326 | source "drivers/uio/Kconfig" |
1327 | 1327 | ||
1328 | source "drivers/staging/Kconfig" | ||
1329 | |||
1328 | endmenu | 1330 | endmenu |
1329 | 1331 | ||
1330 | source "fs/Kconfig" | 1332 | source "fs/Kconfig" |
diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c index 7fc9860a97d7..c6884ba1d5ed 100644 --- a/arch/arm/common/gic.c +++ b/arch/arm/common/gic.c | |||
@@ -109,11 +109,11 @@ static void gic_unmask_irq(unsigned int irq) | |||
109 | } | 109 | } |
110 | 110 | ||
111 | #ifdef CONFIG_SMP | 111 | #ifdef CONFIG_SMP |
112 | static void gic_set_cpu(unsigned int irq, cpumask_t mask_val) | 112 | static void gic_set_cpu(unsigned int irq, const struct cpumask *mask_val) |
113 | { | 113 | { |
114 | void __iomem *reg = gic_dist_base(irq) + GIC_DIST_TARGET + (gic_irq(irq) & ~3); | 114 | void __iomem *reg = gic_dist_base(irq) + GIC_DIST_TARGET + (gic_irq(irq) & ~3); |
115 | unsigned int shift = (irq % 4) * 8; | 115 | unsigned int shift = (irq % 4) * 8; |
116 | unsigned int cpu = first_cpu(mask_val); | 116 | unsigned int cpu = cpumask_first(mask_val); |
117 | u32 val; | 117 | u32 val; |
118 | 118 | ||
119 | spin_lock(&irq_controller_lock); | 119 | spin_lock(&irq_controller_lock); |
diff --git a/arch/arm/configs/clps7500_defconfig b/arch/arm/configs/clps7500_defconfig deleted file mode 100644 index 49e9f9d8b3d1..000000000000 --- a/arch/arm/configs/clps7500_defconfig +++ /dev/null | |||
@@ -1,801 +0,0 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.12-rc1-bk2 | ||
4 | # Sun Mar 27 17:20:48 2005 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_UID16=y | ||
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_GENERIC_IOMAP=y | ||
12 | |||
13 | # | ||
14 | # Code maturity level options | ||
15 | # | ||
16 | CONFIG_EXPERIMENTAL=y | ||
17 | CONFIG_CLEAN_COMPILE=y | ||
18 | CONFIG_BROKEN_ON_SMP=y | ||
19 | |||
20 | # | ||
21 | # General setup | ||
22 | # | ||
23 | CONFIG_LOCALVERSION="" | ||
24 | CONFIG_SWAP=y | ||
25 | CONFIG_SYSVIPC=y | ||
26 | # CONFIG_POSIX_MQUEUE is not set | ||
27 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
28 | # CONFIG_SYSCTL is not set | ||
29 | # CONFIG_AUDIT is not set | ||
30 | # CONFIG_HOTPLUG is not set | ||
31 | CONFIG_KOBJECT_UEVENT=y | ||
32 | # CONFIG_IKCONFIG is not set | ||
33 | CONFIG_EMBEDDED=y | ||
34 | CONFIG_KALLSYMS=y | ||
35 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
36 | CONFIG_BASE_FULL=y | ||
37 | CONFIG_FUTEX=y | ||
38 | CONFIG_EPOLL=y | ||
39 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
40 | CONFIG_SHMEM=y | ||
41 | CONFIG_CC_ALIGN_FUNCTIONS=0 | ||
42 | CONFIG_CC_ALIGN_LABELS=0 | ||
43 | CONFIG_CC_ALIGN_LOOPS=0 | ||
44 | CONFIG_CC_ALIGN_JUMPS=0 | ||
45 | # CONFIG_TINY_SHMEM is not set | ||
46 | CONFIG_BASE_SMALL=0 | ||
47 | |||
48 | # | ||
49 | # Loadable module support | ||
50 | # | ||
51 | # CONFIG_MODULES is not set | ||
52 | |||
53 | # | ||
54 | # System Type | ||
55 | # | ||
56 | CONFIG_ARCH_CLPS7500=y | ||
57 | # CONFIG_ARCH_CLPS711X is not set | ||
58 | # CONFIG_ARCH_CO285 is not set | ||
59 | # CONFIG_ARCH_EBSA110 is not set | ||
60 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
61 | # CONFIG_ARCH_INTEGRATOR is not set | ||
62 | # CONFIG_ARCH_IOP3XX is not set | ||
63 | # CONFIG_ARCH_IXP4XX is not set | ||
64 | # CONFIG_ARCH_IXP2000 is not set | ||
65 | # CONFIG_ARCH_L7200 is not set | ||
66 | # CONFIG_ARCH_PXA is not set | ||
67 | # CONFIG_ARCH_RPC is not set | ||
68 | # CONFIG_ARCH_SA1100 is not set | ||
69 | # CONFIG_ARCH_S3C2410 is not set | ||
70 | # CONFIG_ARCH_SHARK is not set | ||
71 | # CONFIG_ARCH_LH7A40X is not set | ||
72 | # CONFIG_ARCH_OMAP is not set | ||
73 | # CONFIG_ARCH_VERSATILE is not set | ||
74 | # CONFIG_ARCH_IMX is not set | ||
75 | # CONFIG_ARCH_H720X is not set | ||
76 | |||
77 | # | ||
78 | # Processor Type | ||
79 | # | ||
80 | CONFIG_CPU_32=y | ||
81 | CONFIG_CPU_ARM710=y | ||
82 | CONFIG_CPU_32v3=y | ||
83 | CONFIG_CPU_CACHE_V3=y | ||
84 | CONFIG_CPU_CACHE_VIVT=y | ||
85 | CONFIG_CPU_COPY_V3=y | ||
86 | CONFIG_CPU_TLB_V3=y | ||
87 | |||
88 | # | ||
89 | # Processor Features | ||
90 | # | ||
91 | CONFIG_TIMER_ACORN=y | ||
92 | |||
93 | # | ||
94 | # Bus support | ||
95 | # | ||
96 | CONFIG_ISA=y | ||
97 | |||
98 | # | ||
99 | # PCCARD (PCMCIA/CardBus) support | ||
100 | # | ||
101 | # CONFIG_PCCARD is not set | ||
102 | |||
103 | # | ||
104 | # Kernel Features | ||
105 | # | ||
106 | # CONFIG_PREEMPT is not set | ||
107 | CONFIG_ALIGNMENT_TRAP=y | ||
108 | |||
109 | # | ||
110 | # Boot options | ||
111 | # | ||
112 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
113 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
114 | CONFIG_CMDLINE="mem=16M root=nfs" | ||
115 | # CONFIG_XIP_KERNEL is not set | ||
116 | |||
117 | # | ||
118 | # Floating point emulation | ||
119 | # | ||
120 | |||
121 | # | ||
122 | # At least one emulation must be selected | ||
123 | # | ||
124 | # CONFIG_FPE_NWFPE is not set | ||
125 | |||
126 | # | ||
127 | # Userspace binary formats | ||
128 | # | ||
129 | CONFIG_BINFMT_ELF=y | ||
130 | # CONFIG_BINFMT_AOUT is not set | ||
131 | # CONFIG_BINFMT_MISC is not set | ||
132 | # CONFIG_ARTHUR is not set | ||
133 | |||
134 | # | ||
135 | # Power management options | ||
136 | # | ||
137 | # CONFIG_PM is not set | ||
138 | |||
139 | # | ||
140 | # Device Drivers | ||
141 | # | ||
142 | |||
143 | # | ||
144 | # Generic Driver Options | ||
145 | # | ||
146 | CONFIG_STANDALONE=y | ||
147 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
148 | # CONFIG_FW_LOADER is not set | ||
149 | |||
150 | # | ||
151 | # Memory Technology Devices (MTD) | ||
152 | # | ||
153 | CONFIG_MTD=y | ||
154 | # CONFIG_MTD_DEBUG is not set | ||
155 | # CONFIG_MTD_CONCAT is not set | ||
156 | # CONFIG_MTD_PARTITIONS is not set | ||
157 | |||
158 | # | ||
159 | # User Modules And Translation Layers | ||
160 | # | ||
161 | # CONFIG_MTD_CHAR is not set | ||
162 | # CONFIG_MTD_BLOCK is not set | ||
163 | # CONFIG_MTD_BLOCK_RO is not set | ||
164 | # CONFIG_FTL is not set | ||
165 | # CONFIG_NFTL is not set | ||
166 | # CONFIG_INFTL is not set | ||
167 | |||
168 | # | ||
169 | # RAM/ROM/Flash chip drivers | ||
170 | # | ||
171 | # CONFIG_MTD_CFI is not set | ||
172 | # CONFIG_MTD_JEDECPROBE is not set | ||
173 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
174 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
175 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
176 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
177 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
178 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
179 | CONFIG_MTD_CFI_I1=y | ||
180 | CONFIG_MTD_CFI_I2=y | ||
181 | # CONFIG_MTD_CFI_I4 is not set | ||
182 | # CONFIG_MTD_CFI_I8 is not set | ||
183 | # CONFIG_MTD_RAM is not set | ||
184 | # CONFIG_MTD_ROM is not set | ||
185 | # CONFIG_MTD_ABSENT is not set | ||
186 | |||
187 | # | ||
188 | # Mapping drivers for chip access | ||
189 | # | ||
190 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
191 | |||
192 | # | ||
193 | # Self-contained MTD device drivers | ||
194 | # | ||
195 | # CONFIG_MTD_SLRAM is not set | ||
196 | # CONFIG_MTD_PHRAM is not set | ||
197 | # CONFIG_MTD_MTDRAM is not set | ||
198 | # CONFIG_MTD_BLKMTD is not set | ||
199 | # CONFIG_MTD_BLOCK2MTD is not set | ||
200 | |||
201 | # | ||
202 | # Disk-On-Chip Device Drivers | ||
203 | # | ||
204 | # CONFIG_MTD_DOC2000 is not set | ||
205 | # CONFIG_MTD_DOC2001 is not set | ||
206 | # CONFIG_MTD_DOC2001PLUS is not set | ||
207 | |||
208 | # | ||
209 | # NAND Flash Device Drivers | ||
210 | # | ||
211 | # CONFIG_MTD_NAND is not set | ||
212 | |||
213 | # | ||
214 | # Parallel port support | ||
215 | # | ||
216 | CONFIG_PARPORT=y | ||
217 | CONFIG_PARPORT_PC=y | ||
218 | CONFIG_PARPORT_PC_FIFO=y | ||
219 | # CONFIG_PARPORT_PC_SUPERIO is not set | ||
220 | # CONFIG_PARPORT_ARC is not set | ||
221 | # CONFIG_PARPORT_GSC is not set | ||
222 | CONFIG_PARPORT_1284=y | ||
223 | |||
224 | # | ||
225 | # Plug and Play support | ||
226 | # | ||
227 | # CONFIG_PNP is not set | ||
228 | |||
229 | # | ||
230 | # Block devices | ||
231 | # | ||
232 | # CONFIG_BLK_DEV_FD is not set | ||
233 | # CONFIG_BLK_DEV_XD is not set | ||
234 | # CONFIG_PARIDE is not set | ||
235 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
236 | # CONFIG_BLK_DEV_LOOP is not set | ||
237 | CONFIG_BLK_DEV_NBD=y | ||
238 | CONFIG_BLK_DEV_RAM=y | ||
239 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
240 | CONFIG_BLK_DEV_RAM_SIZE=4096 | ||
241 | # CONFIG_BLK_DEV_INITRD is not set | ||
242 | CONFIG_INITRAMFS_SOURCE="" | ||
243 | # CONFIG_CDROM_PKTCDVD is not set | ||
244 | |||
245 | # | ||
246 | # IO Schedulers | ||
247 | # | ||
248 | CONFIG_IOSCHED_NOOP=y | ||
249 | CONFIG_IOSCHED_AS=y | ||
250 | CONFIG_IOSCHED_DEADLINE=y | ||
251 | CONFIG_IOSCHED_CFQ=y | ||
252 | # CONFIG_ATA_OVER_ETH is not set | ||
253 | |||
254 | # | ||
255 | # ATA/ATAPI/MFM/RLL support | ||
256 | # | ||
257 | # CONFIG_IDE is not set | ||
258 | |||
259 | # | ||
260 | # SCSI device support | ||
261 | # | ||
262 | # CONFIG_SCSI is not set | ||
263 | |||
264 | # | ||
265 | # Multi-device support (RAID and LVM) | ||
266 | # | ||
267 | # CONFIG_MD is not set | ||
268 | |||
269 | # | ||
270 | # Fusion MPT device support | ||
271 | # | ||
272 | |||
273 | # | ||
274 | # IEEE 1394 (FireWire) support | ||
275 | # | ||
276 | |||
277 | # | ||
278 | # I2O device support | ||
279 | # | ||
280 | |||
281 | # | ||
282 | # Networking support | ||
283 | # | ||
284 | CONFIG_NET=y | ||
285 | |||
286 | # | ||
287 | # Networking options | ||
288 | # | ||
289 | # CONFIG_PACKET is not set | ||
290 | # CONFIG_NETLINK_DEV is not set | ||
291 | CONFIG_UNIX=y | ||
292 | # CONFIG_NET_KEY is not set | ||
293 | CONFIG_INET=y | ||
294 | # CONFIG_IP_MULTICAST is not set | ||
295 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
296 | CONFIG_IP_PNP=y | ||
297 | # CONFIG_IP_PNP_DHCP is not set | ||
298 | CONFIG_IP_PNP_BOOTP=y | ||
299 | # CONFIG_IP_PNP_RARP is not set | ||
300 | # CONFIG_NET_IPIP is not set | ||
301 | # CONFIG_NET_IPGRE is not set | ||
302 | # CONFIG_ARPD is not set | ||
303 | # CONFIG_SYN_COOKIES is not set | ||
304 | # CONFIG_INET_AH is not set | ||
305 | # CONFIG_INET_ESP is not set | ||
306 | # CONFIG_INET_IPCOMP is not set | ||
307 | # CONFIG_INET_TUNNEL is not set | ||
308 | CONFIG_IP_TCPDIAG=y | ||
309 | # CONFIG_IP_TCPDIAG_IPV6 is not set | ||
310 | # CONFIG_IPV6 is not set | ||
311 | # CONFIG_NETFILTER is not set | ||
312 | |||
313 | # | ||
314 | # SCTP Configuration (EXPERIMENTAL) | ||
315 | # | ||
316 | # CONFIG_IP_SCTP is not set | ||
317 | # CONFIG_ATM is not set | ||
318 | # CONFIG_BRIDGE is not set | ||
319 | # CONFIG_VLAN_8021Q is not set | ||
320 | # CONFIG_DECNET is not set | ||
321 | # CONFIG_LLC2 is not set | ||
322 | # CONFIG_IPX is not set | ||
323 | # CONFIG_ATALK is not set | ||
324 | # CONFIG_X25 is not set | ||
325 | # CONFIG_LAPB is not set | ||
326 | # CONFIG_NET_DIVERT is not set | ||
327 | # CONFIG_ECONET is not set | ||
328 | # CONFIG_WAN_ROUTER is not set | ||
329 | |||
330 | # | ||
331 | # QoS and/or fair queueing | ||
332 | # | ||
333 | # CONFIG_NET_SCHED is not set | ||
334 | # CONFIG_NET_CLS_ROUTE is not set | ||
335 | |||
336 | # | ||
337 | # Network testing | ||
338 | # | ||
339 | # CONFIG_NET_PKTGEN is not set | ||
340 | # CONFIG_NETPOLL is not set | ||
341 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
342 | # CONFIG_HAMRADIO is not set | ||
343 | # CONFIG_IRDA is not set | ||
344 | # CONFIG_BT is not set | ||
345 | CONFIG_NETDEVICES=y | ||
346 | CONFIG_DUMMY=y | ||
347 | # CONFIG_BONDING is not set | ||
348 | # CONFIG_EQUALIZER is not set | ||
349 | # CONFIG_TUN is not set | ||
350 | |||
351 | # | ||
352 | # ARCnet devices | ||
353 | # | ||
354 | # CONFIG_ARCNET is not set | ||
355 | |||
356 | # | ||
357 | # Ethernet (10 or 100Mbit) | ||
358 | # | ||
359 | CONFIG_NET_ETHERNET=y | ||
360 | # CONFIG_MII is not set | ||
361 | # CONFIG_NET_VENDOR_3COM is not set | ||
362 | # CONFIG_LANCE is not set | ||
363 | # CONFIG_NET_VENDOR_SMC is not set | ||
364 | # CONFIG_SMC91X is not set | ||
365 | # CONFIG_NET_VENDOR_RACAL is not set | ||
366 | # CONFIG_AT1700 is not set | ||
367 | # CONFIG_DEPCA is not set | ||
368 | # CONFIG_HP100 is not set | ||
369 | # CONFIG_NET_ISA is not set | ||
370 | CONFIG_NET_PCI=y | ||
371 | # CONFIG_AC3200 is not set | ||
372 | # CONFIG_APRICOT is not set | ||
373 | CONFIG_CS89x0=y | ||
374 | # CONFIG_NET_POCKET is not set | ||
375 | |||
376 | # | ||
377 | # Ethernet (1000 Mbit) | ||
378 | # | ||
379 | |||
380 | # | ||
381 | # Ethernet (10000 Mbit) | ||
382 | # | ||
383 | |||
384 | # | ||
385 | # Token Ring devices | ||
386 | # | ||
387 | # CONFIG_TR is not set | ||
388 | |||
389 | # | ||
390 | # Wireless LAN (non-hamradio) | ||
391 | # | ||
392 | # CONFIG_NET_RADIO is not set | ||
393 | |||
394 | # | ||
395 | # Wan interfaces | ||
396 | # | ||
397 | # CONFIG_WAN is not set | ||
398 | # CONFIG_PLIP is not set | ||
399 | CONFIG_PPP=y | ||
400 | # CONFIG_PPP_MULTILINK is not set | ||
401 | # CONFIG_PPP_FILTER is not set | ||
402 | # CONFIG_PPP_ASYNC is not set | ||
403 | # CONFIG_PPP_SYNC_TTY is not set | ||
404 | # CONFIG_PPP_DEFLATE is not set | ||
405 | # CONFIG_PPP_BSDCOMP is not set | ||
406 | # CONFIG_PPPOE is not set | ||
407 | CONFIG_SLIP=y | ||
408 | CONFIG_SLIP_COMPRESSED=y | ||
409 | # CONFIG_SLIP_SMART is not set | ||
410 | # CONFIG_SLIP_MODE_SLIP6 is not set | ||
411 | # CONFIG_SHAPER is not set | ||
412 | # CONFIG_NETCONSOLE is not set | ||
413 | |||
414 | # | ||
415 | # ISDN subsystem | ||
416 | # | ||
417 | # CONFIG_ISDN is not set | ||
418 | |||
419 | # | ||
420 | # Input device support | ||
421 | # | ||
422 | CONFIG_INPUT=y | ||
423 | |||
424 | # | ||
425 | # Userland interfaces | ||
426 | # | ||
427 | CONFIG_INPUT_MOUSEDEV=y | ||
428 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
429 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
430 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
431 | # CONFIG_INPUT_JOYDEV is not set | ||
432 | # CONFIG_INPUT_TSDEV is not set | ||
433 | # CONFIG_INPUT_EVDEV is not set | ||
434 | # CONFIG_INPUT_EVBUG is not set | ||
435 | |||
436 | # | ||
437 | # Input Device Drivers | ||
438 | # | ||
439 | CONFIG_INPUT_KEYBOARD=y | ||
440 | CONFIG_KEYBOARD_ATKBD=y | ||
441 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
442 | # CONFIG_KEYBOARD_LKKBD is not set | ||
443 | # CONFIG_KEYBOARD_XTKBD is not set | ||
444 | # CONFIG_KEYBOARD_NEWTON is not set | ||
445 | CONFIG_INPUT_MOUSE=y | ||
446 | CONFIG_MOUSE_PS2=y | ||
447 | # CONFIG_MOUSE_SERIAL is not set | ||
448 | # CONFIG_MOUSE_INPORT is not set | ||
449 | # CONFIG_MOUSE_LOGIBM is not set | ||
450 | # CONFIG_MOUSE_PC110PAD is not set | ||
451 | # CONFIG_MOUSE_VSXXXAA is not set | ||
452 | # CONFIG_INPUT_JOYSTICK is not set | ||
453 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
454 | # CONFIG_INPUT_MISC is not set | ||
455 | |||
456 | # | ||
457 | # Hardware I/O ports | ||
458 | # | ||
459 | CONFIG_SERIO=y | ||
460 | # CONFIG_SERIO_SERPORT is not set | ||
461 | # CONFIG_SERIO_PARKBD is not set | ||
462 | CONFIG_SERIO_RPCKBD=y | ||
463 | CONFIG_SERIO_LIBPS2=y | ||
464 | # CONFIG_SERIO_RAW is not set | ||
465 | # CONFIG_GAMEPORT is not set | ||
466 | CONFIG_SOUND_GAMEPORT=y | ||
467 | |||
468 | # | ||
469 | # Character devices | ||
470 | # | ||
471 | CONFIG_VT=y | ||
472 | CONFIG_VT_CONSOLE=y | ||
473 | CONFIG_HW_CONSOLE=y | ||
474 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
475 | |||
476 | # | ||
477 | # Serial drivers | ||
478 | # | ||
479 | CONFIG_SERIAL_8250=y | ||
480 | CONFIG_SERIAL_8250_CONSOLE=y | ||
481 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
482 | # CONFIG_SERIAL_8250_EXTENDED is not set | ||
483 | |||
484 | # | ||
485 | # Non-8250 serial port support | ||
486 | # | ||
487 | CONFIG_SERIAL_CORE=y | ||
488 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
489 | CONFIG_UNIX98_PTYS=y | ||
490 | CONFIG_LEGACY_PTYS=y | ||
491 | CONFIG_LEGACY_PTY_COUNT=256 | ||
492 | CONFIG_PRINTER=y | ||
493 | # CONFIG_LP_CONSOLE is not set | ||
494 | # CONFIG_PPDEV is not set | ||
495 | # CONFIG_TIPAR is not set | ||
496 | |||
497 | # | ||
498 | # IPMI | ||
499 | # | ||
500 | # CONFIG_IPMI_HANDLER is not set | ||
501 | |||
502 | # | ||
503 | # Watchdog Cards | ||
504 | # | ||
505 | # CONFIG_WATCHDOG is not set | ||
506 | # CONFIG_NVRAM is not set | ||
507 | # CONFIG_RTC is not set | ||
508 | # CONFIG_DTLK is not set | ||
509 | # CONFIG_R3964 is not set | ||
510 | |||
511 | # | ||
512 | # Ftape, the floppy tape device driver | ||
513 | # | ||
514 | # CONFIG_DRM is not set | ||
515 | # CONFIG_RAW_DRIVER is not set | ||
516 | |||
517 | # | ||
518 | # TPM devices | ||
519 | # | ||
520 | # CONFIG_TCG_TPM is not set | ||
521 | |||
522 | # | ||
523 | # I2C support | ||
524 | # | ||
525 | CONFIG_I2C=y | ||
526 | # CONFIG_I2C_CHARDEV is not set | ||
527 | |||
528 | # | ||
529 | # I2C Algorithms | ||
530 | # | ||
531 | CONFIG_I2C_ALGOBIT=y | ||
532 | # CONFIG_I2C_ALGOPCF is not set | ||
533 | # CONFIG_I2C_ALGOPCA is not set | ||
534 | |||
535 | # | ||
536 | # I2C Hardware Bus support | ||
537 | # | ||
538 | # CONFIG_I2C_ELEKTOR is not set | ||
539 | # CONFIG_I2C_PARPORT is not set | ||
540 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
541 | # CONFIG_I2C_PCA_ISA is not set | ||
542 | |||
543 | # | ||
544 | # Hardware Sensors Chip support | ||
545 | # | ||
546 | # CONFIG_I2C_SENSOR is not set | ||
547 | # CONFIG_SENSORS_ADM1021 is not set | ||
548 | # CONFIG_SENSORS_ADM1025 is not set | ||
549 | # CONFIG_SENSORS_ADM1026 is not set | ||
550 | # CONFIG_SENSORS_ADM1031 is not set | ||
551 | # CONFIG_SENSORS_ASB100 is not set | ||
552 | # CONFIG_SENSORS_DS1621 is not set | ||
553 | # CONFIG_SENSORS_FSCHER is not set | ||
554 | # CONFIG_SENSORS_FSCPOS is not set | ||
555 | # CONFIG_SENSORS_GL518SM is not set | ||
556 | # CONFIG_SENSORS_GL520SM is not set | ||
557 | # CONFIG_SENSORS_IT87 is not set | ||
558 | # CONFIG_SENSORS_LM63 is not set | ||
559 | # CONFIG_SENSORS_LM75 is not set | ||
560 | # CONFIG_SENSORS_LM77 is not set | ||
561 | # CONFIG_SENSORS_LM78 is not set | ||
562 | # CONFIG_SENSORS_LM80 is not set | ||
563 | # CONFIG_SENSORS_LM83 is not set | ||
564 | # CONFIG_SENSORS_LM85 is not set | ||
565 | # CONFIG_SENSORS_LM87 is not set | ||
566 | # CONFIG_SENSORS_LM90 is not set | ||
567 | # CONFIG_SENSORS_MAX1619 is not set | ||
568 | # CONFIG_SENSORS_PC87360 is not set | ||
569 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
570 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
571 | # CONFIG_SENSORS_W83781D is not set | ||
572 | # CONFIG_SENSORS_W83L785TS is not set | ||
573 | # CONFIG_SENSORS_W83627HF is not set | ||
574 | |||
575 | # | ||
576 | # Other I2C Chip support | ||
577 | # | ||
578 | # CONFIG_SENSORS_EEPROM is not set | ||
579 | # CONFIG_SENSORS_PCF8574 is not set | ||
580 | # CONFIG_SENSORS_PCF8591 is not set | ||
581 | # CONFIG_SENSORS_RTC8564 is not set | ||
582 | # CONFIG_I2C_DEBUG_CORE is not set | ||
583 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
584 | # CONFIG_I2C_DEBUG_BUS is not set | ||
585 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
586 | |||
587 | # | ||
588 | # Misc devices | ||
589 | # | ||
590 | |||
591 | # | ||
592 | # Multimedia devices | ||
593 | # | ||
594 | # CONFIG_VIDEO_DEV is not set | ||
595 | |||
596 | # | ||
597 | # Digital Video Broadcasting Devices | ||
598 | # | ||
599 | # CONFIG_DVB is not set | ||
600 | |||
601 | # | ||
602 | # Graphics support | ||
603 | # | ||
604 | CONFIG_FB=y | ||
605 | CONFIG_FB_CFB_FILLRECT=y | ||
606 | CONFIG_FB_CFB_COPYAREA=y | ||
607 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
608 | CONFIG_FB_SOFT_CURSOR=y | ||
609 | # CONFIG_FB_MODE_HELPERS is not set | ||
610 | # CONFIG_FB_TILEBLITTING is not set | ||
611 | CONFIG_FB_ACORN=y | ||
612 | # CONFIG_FB_VIRTUAL is not set | ||
613 | |||
614 | # | ||
615 | # Console display driver support | ||
616 | # | ||
617 | # CONFIG_VGA_CONSOLE is not set | ||
618 | # CONFIG_MDA_CONSOLE is not set | ||
619 | CONFIG_DUMMY_CONSOLE=y | ||
620 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
621 | CONFIG_FONTS=y | ||
622 | CONFIG_FONT_8x8=y | ||
623 | CONFIG_FONT_8x16=y | ||
624 | # CONFIG_FONT_6x11 is not set | ||
625 | # CONFIG_FONT_PEARL_8x8 is not set | ||
626 | # CONFIG_FONT_ACORN_8x8 is not set | ||
627 | # CONFIG_FONT_MINI_4x6 is not set | ||
628 | # CONFIG_FONT_SUN8x16 is not set | ||
629 | # CONFIG_FONT_SUN12x22 is not set | ||
630 | |||
631 | # | ||
632 | # Logo configuration | ||
633 | # | ||
634 | CONFIG_LOGO=y | ||
635 | CONFIG_LOGO_LINUX_MONO=y | ||
636 | CONFIG_LOGO_LINUX_VGA16=y | ||
637 | CONFIG_LOGO_LINUX_CLUT224=y | ||
638 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
639 | |||
640 | # | ||
641 | # Sound | ||
642 | # | ||
643 | # CONFIG_SOUND is not set | ||
644 | |||
645 | # | ||
646 | # USB support | ||
647 | # | ||
648 | CONFIG_USB_ARCH_HAS_HCD=y | ||
649 | # CONFIG_USB_ARCH_HAS_OHCI is not set | ||
650 | # CONFIG_USB is not set | ||
651 | |||
652 | # | ||
653 | # USB Gadget Support | ||
654 | # | ||
655 | # CONFIG_USB_GADGET is not set | ||
656 | |||
657 | # | ||
658 | # MMC/SD Card support | ||
659 | # | ||
660 | # CONFIG_MMC is not set | ||
661 | |||
662 | # | ||
663 | # File systems | ||
664 | # | ||
665 | CONFIG_EXT2_FS=y | ||
666 | # CONFIG_EXT2_FS_XATTR is not set | ||
667 | # CONFIG_EXT3_FS is not set | ||
668 | # CONFIG_JBD is not set | ||
669 | # CONFIG_REISERFS_FS is not set | ||
670 | # CONFIG_JFS_FS is not set | ||
671 | |||
672 | # | ||
673 | # XFS support | ||
674 | # | ||
675 | # CONFIG_XFS_FS is not set | ||
676 | CONFIG_MINIX_FS=y | ||
677 | # CONFIG_ROMFS_FS is not set | ||
678 | # CONFIG_QUOTA is not set | ||
679 | CONFIG_DNOTIFY=y | ||
680 | # CONFIG_AUTOFS_FS is not set | ||
681 | # CONFIG_AUTOFS4_FS is not set | ||
682 | |||
683 | # | ||
684 | # CD-ROM/DVD Filesystems | ||
685 | # | ||
686 | # CONFIG_ISO9660_FS is not set | ||
687 | # CONFIG_UDF_FS is not set | ||
688 | |||
689 | # | ||
690 | # DOS/FAT/NT Filesystems | ||
691 | # | ||
692 | # CONFIG_MSDOS_FS is not set | ||
693 | # CONFIG_VFAT_FS is not set | ||
694 | # CONFIG_NTFS_FS is not set | ||
695 | |||
696 | # | ||
697 | # Pseudo filesystems | ||
698 | # | ||
699 | CONFIG_PROC_FS=y | ||
700 | CONFIG_SYSFS=y | ||
701 | # CONFIG_DEVFS_FS is not set | ||
702 | # CONFIG_DEVPTS_FS_XATTR is not set | ||
703 | # CONFIG_TMPFS is not set | ||
704 | # CONFIG_HUGETLB_PAGE is not set | ||
705 | CONFIG_RAMFS=y | ||
706 | |||
707 | # | ||
708 | # Miscellaneous filesystems | ||
709 | # | ||
710 | # CONFIG_ADFS_FS is not set | ||
711 | # CONFIG_AFFS_FS is not set | ||
712 | # CONFIG_HFS_FS is not set | ||
713 | # CONFIG_HFSPLUS_FS is not set | ||
714 | # CONFIG_BEFS_FS is not set | ||
715 | # CONFIG_BFS_FS is not set | ||
716 | # CONFIG_EFS_FS is not set | ||
717 | # CONFIG_JFFS_FS is not set | ||
718 | # CONFIG_JFFS2_FS is not set | ||
719 | # CONFIG_CRAMFS is not set | ||
720 | # CONFIG_VXFS_FS is not set | ||
721 | # CONFIG_HPFS_FS is not set | ||
722 | # CONFIG_QNX4FS_FS is not set | ||
723 | # CONFIG_SYSV_FS is not set | ||
724 | # CONFIG_UFS_FS is not set | ||
725 | |||
726 | # | ||
727 | # Network File Systems | ||
728 | # | ||
729 | CONFIG_NFS_FS=y | ||
730 | # CONFIG_NFS_V3 is not set | ||
731 | # CONFIG_NFS_V4 is not set | ||
732 | # CONFIG_NFS_DIRECTIO is not set | ||
733 | # CONFIG_NFSD is not set | ||
734 | CONFIG_ROOT_NFS=y | ||
735 | CONFIG_LOCKD=y | ||
736 | CONFIG_SUNRPC=y | ||
737 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
738 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
739 | # CONFIG_SMB_FS is not set | ||
740 | # CONFIG_CIFS is not set | ||
741 | # CONFIG_NCP_FS is not set | ||
742 | # CONFIG_CODA_FS is not set | ||
743 | # CONFIG_AFS_FS is not set | ||
744 | |||
745 | # | ||
746 | # Partition Types | ||
747 | # | ||
748 | CONFIG_PARTITION_ADVANCED=y | ||
749 | # CONFIG_ACORN_PARTITION is not set | ||
750 | # CONFIG_OSF_PARTITION is not set | ||
751 | # CONFIG_AMIGA_PARTITION is not set | ||
752 | # CONFIG_ATARI_PARTITION is not set | ||
753 | # CONFIG_MAC_PARTITION is not set | ||
754 | # CONFIG_MSDOS_PARTITION is not set | ||
755 | # CONFIG_LDM_PARTITION is not set | ||
756 | # CONFIG_SGI_PARTITION is not set | ||
757 | # CONFIG_ULTRIX_PARTITION is not set | ||
758 | # CONFIG_SUN_PARTITION is not set | ||
759 | # CONFIG_EFI_PARTITION is not set | ||
760 | |||
761 | # | ||
762 | # Native Language Support | ||
763 | # | ||
764 | # CONFIG_NLS is not set | ||
765 | |||
766 | # | ||
767 | # Profiling support | ||
768 | # | ||
769 | # CONFIG_PROFILING is not set | ||
770 | |||
771 | # | ||
772 | # Kernel hacking | ||
773 | # | ||
774 | # CONFIG_PRINTK_TIME is not set | ||
775 | # CONFIG_DEBUG_KERNEL is not set | ||
776 | CONFIG_LOG_BUF_SHIFT=14 | ||
777 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
778 | CONFIG_FRAME_POINTER=y | ||
779 | # CONFIG_DEBUG_USER is not set | ||
780 | |||
781 | # | ||
782 | # Security options | ||
783 | # | ||
784 | # CONFIG_KEYS is not set | ||
785 | # CONFIG_SECURITY is not set | ||
786 | |||
787 | # | ||
788 | # Cryptographic options | ||
789 | # | ||
790 | # CONFIG_CRYPTO is not set | ||
791 | |||
792 | # | ||
793 | # Hardware crypto devices | ||
794 | # | ||
795 | |||
796 | # | ||
797 | # Library routines | ||
798 | # | ||
799 | # CONFIG_CRC_CCITT is not set | ||
800 | CONFIG_CRC32=y | ||
801 | # CONFIG_LIBCRC32C is not set | ||
diff --git a/arch/arm/include/asm/Kbuild b/arch/arm/include/asm/Kbuild index 73237bd130a2..43b0b2ba392f 100644 --- a/arch/arm/include/asm/Kbuild +++ b/arch/arm/include/asm/Kbuild | |||
@@ -1,3 +1,4 @@ | |||
1 | include include/asm-generic/Kbuild.asm | 1 | include include/asm-generic/Kbuild.asm |
2 | 2 | ||
3 | unifdef-y += hwcap.h | 3 | unifdef-y += hwcap.h |
4 | unifdef-y += swab.h | ||
diff --git a/arch/arm/include/asm/atomic.h b/arch/arm/include/asm/atomic.h index 325f881ccb50..ee99723b3a6c 100644 --- a/arch/arm/include/asm/atomic.h +++ b/arch/arm/include/asm/atomic.h | |||
@@ -12,10 +12,9 @@ | |||
12 | #define __ASM_ARM_ATOMIC_H | 12 | #define __ASM_ARM_ATOMIC_H |
13 | 13 | ||
14 | #include <linux/compiler.h> | 14 | #include <linux/compiler.h> |
15 | #include <linux/types.h> | ||
15 | #include <asm/system.h> | 16 | #include <asm/system.h> |
16 | 17 | ||
17 | typedef struct { volatile int counter; } atomic_t; | ||
18 | |||
19 | #define ATOMIC_INIT(i) { (i) } | 18 | #define ATOMIC_INIT(i) { (i) } |
20 | 19 | ||
21 | #ifdef __KERNEL__ | 20 | #ifdef __KERNEL__ |
diff --git a/arch/arm/include/asm/byteorder.h b/arch/arm/include/asm/byteorder.h index 4fbfb22f65a0..c02b6fc28e1a 100644 --- a/arch/arm/include/asm/byteorder.h +++ b/arch/arm/include/asm/byteorder.h | |||
@@ -15,38 +15,7 @@ | |||
15 | #ifndef __ASM_ARM_BYTEORDER_H | 15 | #ifndef __ASM_ARM_BYTEORDER_H |
16 | #define __ASM_ARM_BYTEORDER_H | 16 | #define __ASM_ARM_BYTEORDER_H |
17 | 17 | ||
18 | #include <linux/compiler.h> | 18 | #include <asm/swab.h> |
19 | #include <asm/types.h> | ||
20 | |||
21 | static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) | ||
22 | { | ||
23 | __u32 t; | ||
24 | |||
25 | #ifndef __thumb__ | ||
26 | if (!__builtin_constant_p(x)) { | ||
27 | /* | ||
28 | * The compiler needs a bit of a hint here to always do the | ||
29 | * right thing and not screw it up to different degrees | ||
30 | * depending on the gcc version. | ||
31 | */ | ||
32 | asm ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); | ||
33 | } else | ||
34 | #endif | ||
35 | t = x ^ ((x << 16) | (x >> 16)); /* eor r1,r0,r0,ror #16 */ | ||
36 | |||
37 | x = (x << 24) | (x >> 8); /* mov r0,r0,ror #8 */ | ||
38 | t &= ~0x00FF0000; /* bic r1,r1,#0x00FF0000 */ | ||
39 | x ^= (t >> 8); /* eor r0,r0,r1,lsr #8 */ | ||
40 | |||
41 | return x; | ||
42 | } | ||
43 | |||
44 | #define __arch__swab32(x) ___arch__swab32(x) | ||
45 | |||
46 | #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) | ||
47 | # define __BYTEORDER_HAS_U64__ | ||
48 | # define __SWAB_64_THRU_32__ | ||
49 | #endif | ||
50 | 19 | ||
51 | #ifdef __ARMEB__ | 20 | #ifdef __ARMEB__ |
52 | #include <linux/byteorder/big_endian.h> | 21 | #include <linux/byteorder/big_endian.h> |
diff --git a/arch/arm/include/asm/mach/pci.h b/arch/arm/include/asm/mach/pci.h index 32da1ae17e06..a38bdc7afa34 100644 --- a/arch/arm/include/asm/mach/pci.h +++ b/arch/arm/include/asm/mach/pci.h | |||
@@ -42,7 +42,7 @@ struct pci_sys_data { | |||
42 | /* | 42 | /* |
43 | * This is the standard PCI-PCI bridge swizzling algorithm. | 43 | * This is the standard PCI-PCI bridge swizzling algorithm. |
44 | */ | 44 | */ |
45 | u8 pci_std_swizzle(struct pci_dev *dev, u8 *pinp); | 45 | #define pci_std_swizzle pci_common_swizzle |
46 | 46 | ||
47 | /* | 47 | /* |
48 | * Call this with your hw_pci struct to initialise the PCI system. | 48 | * Call this with your hw_pci struct to initialise the PCI system. |
diff --git a/arch/arm/include/asm/swab.h b/arch/arm/include/asm/swab.h new file mode 100644 index 000000000000..27a689be0856 --- /dev/null +++ b/arch/arm/include/asm/swab.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | * arch/arm/include/asm/byteorder.h | ||
3 | * | ||
4 | * ARM Endian-ness. In little endian mode, the data bus is connected such | ||
5 | * that byte accesses appear as: | ||
6 | * 0 = d0...d7, 1 = d8...d15, 2 = d16...d23, 3 = d24...d31 | ||
7 | * and word accesses (data or instruction) appear as: | ||
8 | * d0...d31 | ||
9 | * | ||
10 | * When in big endian mode, byte accesses appear as: | ||
11 | * 0 = d24...d31, 1 = d16...d23, 2 = d8...d15, 3 = d0...d7 | ||
12 | * and word accesses (data or instruction) appear as: | ||
13 | * d0...d31 | ||
14 | */ | ||
15 | #ifndef __ASM_ARM_SWAB_H | ||
16 | #define __ASM_ARM_SWAB_H | ||
17 | |||
18 | #include <linux/compiler.h> | ||
19 | #include <asm/types.h> | ||
20 | |||
21 | #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) | ||
22 | # define __SWAB_64_THRU_32__ | ||
23 | #endif | ||
24 | |||
25 | static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | ||
26 | { | ||
27 | __u32 t; | ||
28 | |||
29 | #ifndef __thumb__ | ||
30 | if (!__builtin_constant_p(x)) { | ||
31 | /* | ||
32 | * The compiler needs a bit of a hint here to always do the | ||
33 | * right thing and not screw it up to different degrees | ||
34 | * depending on the gcc version. | ||
35 | */ | ||
36 | asm ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); | ||
37 | } else | ||
38 | #endif | ||
39 | t = x ^ ((x << 16) | (x >> 16)); /* eor r1,r0,r0,ror #16 */ | ||
40 | |||
41 | x = (x << 24) | (x >> 8); /* mov r0,r0,ror #8 */ | ||
42 | t &= ~0x00FF0000; /* bic r1,r1,#0x00FF0000 */ | ||
43 | x ^= (t >> 8); /* eor r0,r0,r1,lsr #8 */ | ||
44 | |||
45 | return x; | ||
46 | } | ||
47 | #define __arch_swab32 __arch_swab32 | ||
48 | |||
49 | #endif | ||
50 | |||
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index 17a59b6e521f..809681900ec8 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c | |||
@@ -480,33 +480,6 @@ EXPORT_SYMBOL(pcibios_bus_to_resource); | |||
480 | #endif | 480 | #endif |
481 | 481 | ||
482 | /* | 482 | /* |
483 | * This is the standard PCI-PCI bridge swizzling algorithm: | ||
484 | * | ||
485 | * Dev: 0 1 2 3 | ||
486 | * A A B C D | ||
487 | * B B C D A | ||
488 | * C C D A B | ||
489 | * D D A B C | ||
490 | * ^^^^^^^^^^ irq pin on bridge | ||
491 | */ | ||
492 | u8 __devinit pci_std_swizzle(struct pci_dev *dev, u8 *pinp) | ||
493 | { | ||
494 | int pin = *pinp - 1; | ||
495 | |||
496 | while (dev->bus->self) { | ||
497 | pin = (pin + PCI_SLOT(dev->devfn)) & 3; | ||
498 | /* | ||
499 | * move up the chain of bridges, | ||
500 | * swizzling as we go. | ||
501 | */ | ||
502 | dev = dev->bus->self; | ||
503 | } | ||
504 | *pinp = pin + 1; | ||
505 | |||
506 | return PCI_SLOT(dev->devfn); | ||
507 | } | ||
508 | |||
509 | /* | ||
510 | * Swizzle the device pin each time we cross a bridge. | 483 | * Swizzle the device pin each time we cross a bridge. |
511 | * This might update pin and returns the slot number. | 484 | * This might update pin and returns the slot number. |
512 | */ | 485 | */ |
diff --git a/arch/arm/kernel/ecard.c b/arch/arm/kernel/ecard.c index 60c079d85355..eed2f795e1b3 100644 --- a/arch/arm/kernel/ecard.c +++ b/arch/arm/kernel/ecard.c | |||
@@ -817,7 +817,7 @@ static struct expansion_card *__init ecard_alloc_card(int type, int slot) | |||
817 | ec->dma = NO_DMA; | 817 | ec->dma = NO_DMA; |
818 | ec->ops = &ecard_default_ops; | 818 | ec->ops = &ecard_default_ops; |
819 | 819 | ||
820 | snprintf(ec->dev.bus_id, sizeof(ec->dev.bus_id), "ecard%d", slot); | 820 | dev_set_name(&ec->dev, "ecard%d", slot); |
821 | ec->dev.parent = NULL; | 821 | ec->dev.parent = NULL; |
822 | ec->dev.bus = &ecard_bus_type; | 822 | ec->dev.bus = &ecard_bus_type; |
823 | ec->dev.dma_mask = &ec->dma_mask; | 823 | ec->dev.dma_mask = &ec->dma_mask; |
diff --git a/arch/arm/kernel/init_task.c b/arch/arm/kernel/init_task.c index 0bbf80625395..e859af349467 100644 --- a/arch/arm/kernel/init_task.c +++ b/arch/arm/kernel/init_task.c | |||
@@ -12,7 +12,6 @@ | |||
12 | 12 | ||
13 | #include <asm/pgtable.h> | 13 | #include <asm/pgtable.h> |
14 | 14 | ||
15 | static struct fs_struct init_fs = INIT_FS; | ||
16 | static struct signal_struct init_signals = INIT_SIGNALS(init_signals); | 15 | static struct signal_struct init_signals = INIT_SIGNALS(init_signals); |
17 | static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); | 16 | static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); |
18 | struct mm_struct init_mm = INIT_MM(init_mm); | 17 | struct mm_struct init_mm = INIT_MM(init_mm); |
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 2f3eb795fa6e..7141cee1fab7 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c | |||
@@ -174,7 +174,7 @@ static void route_irq(struct irq_desc *desc, unsigned int irq, unsigned int cpu) | |||
174 | pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->cpu, cpu); | 174 | pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->cpu, cpu); |
175 | 175 | ||
176 | spin_lock_irq(&desc->lock); | 176 | spin_lock_irq(&desc->lock); |
177 | desc->chip->set_affinity(irq, cpumask_of_cpu(cpu)); | 177 | desc->chip->set_affinity(irq, cpumask_of(cpu)); |
178 | spin_unlock_irq(&desc->lock); | 178 | spin_unlock_irq(&desc->lock); |
179 | } | 179 | } |
180 | 180 | ||
diff --git a/arch/arm/kernel/isa.c b/arch/arm/kernel/isa.c index 50a30bc91872..8ac9b8424007 100644 --- a/arch/arm/kernel/isa.c +++ b/arch/arm/kernel/isa.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/fs.h> | 16 | #include <linux/fs.h> |
17 | #include <linux/sysctl.h> | 17 | #include <linux/sysctl.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/io.h> | ||
19 | 20 | ||
20 | static unsigned int isa_membase, isa_portbase, isa_portshift; | 21 | static unsigned int isa_membase, isa_portbase, isa_portshift; |
21 | 22 | ||
diff --git a/arch/arm/kernel/kprobes.c b/arch/arm/kernel/kprobes.c index 3f9abe0e9aff..f692efddd449 100644 --- a/arch/arm/kernel/kprobes.c +++ b/arch/arm/kernel/kprobes.c | |||
@@ -92,9 +92,7 @@ void __kprobes arch_disarm_kprobe(struct kprobe *p) | |||
92 | void __kprobes arch_remove_kprobe(struct kprobe *p) | 92 | void __kprobes arch_remove_kprobe(struct kprobe *p) |
93 | { | 93 | { |
94 | if (p->ainsn.insn) { | 94 | if (p->ainsn.insn) { |
95 | mutex_lock(&kprobe_mutex); | ||
96 | free_insn_slot(p->ainsn.insn, 0); | 95 | free_insn_slot(p->ainsn.insn, 0); |
97 | mutex_unlock(&kprobe_mutex); | ||
98 | p->ainsn.insn = NULL; | 96 | p->ainsn.insn = NULL; |
99 | } | 97 | } |
100 | } | 98 | } |
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 019237d21622..55fa7ff96a3e 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c | |||
@@ -34,16 +34,6 @@ | |||
34 | #include <asm/ptrace.h> | 34 | #include <asm/ptrace.h> |
35 | 35 | ||
36 | /* | 36 | /* |
37 | * bitmask of present and online CPUs. | ||
38 | * The present bitmask indicates that the CPU is physically present. | ||
39 | * The online bitmask indicates that the CPU is up and running. | ||
40 | */ | ||
41 | cpumask_t cpu_possible_map; | ||
42 | EXPORT_SYMBOL(cpu_possible_map); | ||
43 | cpumask_t cpu_online_map; | ||
44 | EXPORT_SYMBOL(cpu_online_map); | ||
45 | |||
46 | /* | ||
47 | * as from 2.5, kernels no longer have an init_tasks structure | 37 | * as from 2.5, kernels no longer have an init_tasks structure |
48 | * so we need some other way of telling a new secondary core | 38 | * so we need some other way of telling a new secondary core |
49 | * where to place its SVC stack | 39 | * where to place its SVC stack |
diff --git a/arch/arm/mach-aaec2000/core.c b/arch/arm/mach-aaec2000/core.c index 50e13965dfed..b5c5fc6ba3a9 100644 --- a/arch/arm/mach-aaec2000/core.c +++ b/arch/arm/mach-aaec2000/core.c | |||
@@ -212,7 +212,7 @@ static struct clcd_board clcd_plat_data = { | |||
212 | 212 | ||
213 | static struct amba_device clcd_device = { | 213 | static struct amba_device clcd_device = { |
214 | .dev = { | 214 | .dev = { |
215 | .bus_id = "mb:16", | 215 | .init_name = "mb:16", |
216 | .coherent_dma_mask = ~0, | 216 | .coherent_dma_mask = ~0, |
217 | .platform_data = &clcd_plat_data, | 217 | .platform_data = &clcd_plat_data, |
218 | }, | 218 | }, |
diff --git a/arch/arm/mach-at91/at91cap9.c b/arch/arm/mach-at91/at91cap9.c index 0a38c69fdbc4..73376170fb91 100644 --- a/arch/arm/mach-at91/at91cap9.c +++ b/arch/arm/mach-at91/at91cap9.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/module.h> | 15 | #include <linux/module.h> |
16 | #include <linux/pm.h> | 16 | #include <linux/pm.h> |
17 | 17 | ||
18 | #include <asm/irq.h> | ||
18 | #include <asm/mach/arch.h> | 19 | #include <asm/mach/arch.h> |
19 | #include <asm/mach/map.h> | 20 | #include <asm/mach/map.h> |
20 | 21 | ||
diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm/mach-at91/at91rm9200.c index 28594fcc88e3..2e9ecad97f3d 100644 --- a/arch/arm/mach-at91/at91rm9200.c +++ b/arch/arm/mach-at91/at91rm9200.c | |||
@@ -12,6 +12,7 @@ | |||
12 | 12 | ||
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | 14 | ||
15 | #include <asm/irq.h> | ||
15 | #include <asm/mach/arch.h> | 16 | #include <asm/mach/arch.h> |
16 | #include <asm/mach/map.h> | 17 | #include <asm/mach/map.h> |
17 | #include <mach/at91rm9200.h> | 18 | #include <mach/at91rm9200.h> |
diff --git a/arch/arm/mach-at91/at91rm9200_time.c b/arch/arm/mach-at91/at91rm9200_time.c index d140eae53ded..1ff1bda0a894 100644 --- a/arch/arm/mach-at91/at91rm9200_time.c +++ b/arch/arm/mach-at91/at91rm9200_time.c | |||
@@ -178,7 +178,6 @@ static struct clock_event_device clkevt = { | |||
178 | .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, | 178 | .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, |
179 | .shift = 32, | 179 | .shift = 32, |
180 | .rating = 150, | 180 | .rating = 150, |
181 | .cpumask = CPU_MASK_CPU0, | ||
182 | .set_next_event = clkevt32k_next_event, | 181 | .set_next_event = clkevt32k_next_event, |
183 | .set_mode = clkevt32k_mode, | 182 | .set_mode = clkevt32k_mode, |
184 | }; | 183 | }; |
@@ -206,7 +205,7 @@ void __init at91rm9200_timer_init(void) | |||
206 | clkevt.mult = div_sc(AT91_SLOW_CLOCK, NSEC_PER_SEC, clkevt.shift); | 205 | clkevt.mult = div_sc(AT91_SLOW_CLOCK, NSEC_PER_SEC, clkevt.shift); |
207 | clkevt.max_delta_ns = clockevent_delta2ns(AT91_ST_ALMV, &clkevt); | 206 | clkevt.max_delta_ns = clockevent_delta2ns(AT91_ST_ALMV, &clkevt); |
208 | clkevt.min_delta_ns = clockevent_delta2ns(2, &clkevt) + 1; | 207 | clkevt.min_delta_ns = clockevent_delta2ns(2, &clkevt) + 1; |
209 | clkevt.cpumask = cpumask_of_cpu(0); | 208 | clkevt.cpumask = cpumask_of(0); |
210 | clockevents_register_device(&clkevt); | 209 | clockevents_register_device(&clkevt); |
211 | 210 | ||
212 | /* register clocksource */ | 211 | /* register clocksource */ |
diff --git a/arch/arm/mach-at91/at91sam9260.c b/arch/arm/mach-at91/at91sam9260.c index accb69ec478e..0894f1077be7 100644 --- a/arch/arm/mach-at91/at91sam9260.c +++ b/arch/arm/mach-at91/at91sam9260.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/pm.h> | 14 | #include <linux/pm.h> |
15 | 15 | ||
16 | #include <asm/irq.h> | ||
16 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
17 | #include <asm/mach/map.h> | 18 | #include <asm/mach/map.h> |
18 | #include <mach/cpu.h> | 19 | #include <mach/cpu.h> |
diff --git a/arch/arm/mach-at91/at91sam9261.c b/arch/arm/mach-at91/at91sam9261.c index 7b51a59ae8b3..3acd7d7e6a42 100644 --- a/arch/arm/mach-at91/at91sam9261.c +++ b/arch/arm/mach-at91/at91sam9261.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/pm.h> | 14 | #include <linux/pm.h> |
15 | 15 | ||
16 | #include <asm/irq.h> | ||
16 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
17 | #include <asm/mach/map.h> | 18 | #include <asm/mach/map.h> |
18 | #include <mach/at91sam9261.h> | 19 | #include <mach/at91sam9261.h> |
diff --git a/arch/arm/mach-at91/at91sam9263.c b/arch/arm/mach-at91/at91sam9263.c index ada4b6769107..942792d630d8 100644 --- a/arch/arm/mach-at91/at91sam9263.c +++ b/arch/arm/mach-at91/at91sam9263.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/pm.h> | 14 | #include <linux/pm.h> |
15 | 15 | ||
16 | #include <asm/irq.h> | ||
16 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
17 | #include <asm/mach/map.h> | 18 | #include <asm/mach/map.h> |
18 | #include <mach/at91sam9263.h> | 19 | #include <mach/at91sam9263.h> |
diff --git a/arch/arm/mach-at91/at91sam926x_time.c b/arch/arm/mach-at91/at91sam926x_time.c index 122fd77ed580..b63e1d5f1bad 100644 --- a/arch/arm/mach-at91/at91sam926x_time.c +++ b/arch/arm/mach-at91/at91sam926x_time.c | |||
@@ -91,7 +91,6 @@ static struct clock_event_device pit_clkevt = { | |||
91 | .features = CLOCK_EVT_FEAT_PERIODIC, | 91 | .features = CLOCK_EVT_FEAT_PERIODIC, |
92 | .shift = 32, | 92 | .shift = 32, |
93 | .rating = 100, | 93 | .rating = 100, |
94 | .cpumask = CPU_MASK_CPU0, | ||
95 | .set_mode = pit_clkevt_mode, | 94 | .set_mode = pit_clkevt_mode, |
96 | }; | 95 | }; |
97 | 96 | ||
@@ -173,6 +172,7 @@ static void __init at91sam926x_pit_init(void) | |||
173 | 172 | ||
174 | /* Set up and register clockevents */ | 173 | /* Set up and register clockevents */ |
175 | pit_clkevt.mult = div_sc(pit_rate, NSEC_PER_SEC, pit_clkevt.shift); | 174 | pit_clkevt.mult = div_sc(pit_rate, NSEC_PER_SEC, pit_clkevt.shift); |
175 | pit_clkevt.cpumask = cpumask_of(0); | ||
176 | clockevents_register_device(&pit_clkevt); | 176 | clockevents_register_device(&pit_clkevt); |
177 | } | 177 | } |
178 | 178 | ||
diff --git a/arch/arm/mach-at91/at91sam9rl.c b/arch/arm/mach-at91/at91sam9rl.c index 252e954b49fd..211c5c14a1e6 100644 --- a/arch/arm/mach-at91/at91sam9rl.c +++ b/arch/arm/mach-at91/at91sam9rl.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/pm.h> | 13 | #include <linux/pm.h> |
14 | 14 | ||
15 | #include <asm/irq.h> | ||
15 | #include <asm/mach/arch.h> | 16 | #include <asm/mach/arch.h> |
16 | #include <asm/mach/map.h> | 17 | #include <asm/mach/map.h> |
17 | #include <mach/cpu.h> | 18 | #include <mach/cpu.h> |
diff --git a/arch/arm/mach-at91/board-sam9rlek.c b/arch/arm/mach-at91/board-sam9rlek.c index 9b937ee4815a..35e12a49d1a6 100644 --- a/arch/arm/mach-at91/board-sam9rlek.c +++ b/arch/arm/mach-at91/board-sam9rlek.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <mach/hardware.h> | 29 | #include <mach/hardware.h> |
30 | #include <mach/board.h> | 30 | #include <mach/board.h> |
31 | #include <mach/gpio.h> | 31 | #include <mach/gpio.h> |
32 | #include <mach/at91sam9_smc.h> | ||
32 | #include <mach/at91_shdwc.h> | 33 | #include <mach/at91_shdwc.h> |
33 | 34 | ||
34 | #include "sam9_smc.h" | 35 | #include "sam9_smc.h" |
diff --git a/arch/arm/mach-clps711x/edb7211-mm.c b/arch/arm/mach-clps711x/edb7211-mm.c index c58e32ec4c5d..0bea1454ae03 100644 --- a/arch/arm/mach-clps711x/edb7211-mm.c +++ b/arch/arm/mach-clps711x/edb7211-mm.c | |||
@@ -24,7 +24,6 @@ | |||
24 | 24 | ||
25 | #include <mach/hardware.h> | 25 | #include <mach/hardware.h> |
26 | #include <asm/page.h> | 26 | #include <asm/page.h> |
27 | #include <asm/pgtable.h> | ||
28 | #include <asm/sizes.h> | 27 | #include <asm/sizes.h> |
29 | 28 | ||
30 | #include <asm/mach/map.h> | 29 | #include <asm/mach/map.h> |
diff --git a/arch/arm/mach-clps711x/fortunet.c b/arch/arm/mach-clps711x/fortunet.c index 7122b3d21043..7430e4049d87 100644 --- a/arch/arm/mach-clps711x/fortunet.c +++ b/arch/arm/mach-clps711x/fortunet.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/initrd.h> | 24 | #include <linux/initrd.h> |
25 | 25 | ||
26 | #include <mach/hardware.h> | 26 | #include <mach/hardware.h> |
27 | #include <asm/irq.h> | ||
28 | #include <asm/setup.h> | 27 | #include <asm/setup.h> |
29 | #include <asm/mach-types.h> | 28 | #include <asm/mach-types.h> |
30 | 29 | ||
diff --git a/arch/arm/mach-davinci/devices.c b/arch/arm/mach-davinci/devices.c index 3d4b1de8f898..808633f9f03c 100644 --- a/arch/arm/mach-davinci/devices.c +++ b/arch/arm/mach-davinci/devices.c | |||
@@ -20,6 +20,7 @@ | |||
20 | 20 | ||
21 | #include <mach/hardware.h> | 21 | #include <mach/hardware.h> |
22 | #include <mach/i2c.h> | 22 | #include <mach/i2c.h> |
23 | #include <mach/irqs.h> | ||
23 | 24 | ||
24 | static struct resource i2c_resources[] = { | 25 | static struct resource i2c_resources[] = { |
25 | { | 26 | { |
diff --git a/arch/arm/mach-davinci/include/mach/gpio.h b/arch/arm/mach-davinci/include/mach/gpio.h index b3a2961f0f46..b456f079f43f 100644 --- a/arch/arm/mach-davinci/include/mach/gpio.h +++ b/arch/arm/mach-davinci/include/mach/gpio.h | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/io.h> | 16 | #include <linux/io.h> |
17 | #include <asm-generic/gpio.h> | 17 | #include <asm-generic/gpio.h> |
18 | #include <mach/hardware.h> | 18 | #include <mach/hardware.h> |
19 | #include <mach/irqs.h> | ||
19 | 20 | ||
20 | /* | 21 | /* |
21 | * basic gpio routines | 22 | * basic gpio routines |
diff --git a/arch/arm/mach-davinci/time.c b/arch/arm/mach-davinci/time.c index 3b9a296b5c4b..f8bcd29d17a6 100644 --- a/arch/arm/mach-davinci/time.c +++ b/arch/arm/mach-davinci/time.c | |||
@@ -322,7 +322,7 @@ static void __init davinci_timer_init(void) | |||
322 | clockevent_davinci.min_delta_ns = | 322 | clockevent_davinci.min_delta_ns = |
323 | clockevent_delta2ns(1, &clockevent_davinci); | 323 | clockevent_delta2ns(1, &clockevent_davinci); |
324 | 324 | ||
325 | clockevent_davinci.cpumask = cpumask_of_cpu(0); | 325 | clockevent_davinci.cpumask = cpumask_of(0); |
326 | clockevents_register_device(&clockevent_davinci); | 326 | clockevents_register_device(&clockevent_davinci); |
327 | } | 327 | } |
328 | 328 | ||
diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c index 4781f323703b..6d9152de6074 100644 --- a/arch/arm/mach-ep93xx/core.c +++ b/arch/arm/mach-ep93xx/core.c | |||
@@ -409,7 +409,7 @@ static struct amba_pl010_data ep93xx_uart_data = { | |||
409 | 409 | ||
410 | static struct amba_device uart1_device = { | 410 | static struct amba_device uart1_device = { |
411 | .dev = { | 411 | .dev = { |
412 | .bus_id = "apb:uart1", | 412 | .init_name = "apb:uart1", |
413 | .platform_data = &ep93xx_uart_data, | 413 | .platform_data = &ep93xx_uart_data, |
414 | }, | 414 | }, |
415 | .res = { | 415 | .res = { |
@@ -423,7 +423,7 @@ static struct amba_device uart1_device = { | |||
423 | 423 | ||
424 | static struct amba_device uart2_device = { | 424 | static struct amba_device uart2_device = { |
425 | .dev = { | 425 | .dev = { |
426 | .bus_id = "apb:uart2", | 426 | .init_name = "apb:uart2", |
427 | .platform_data = &ep93xx_uart_data, | 427 | .platform_data = &ep93xx_uart_data, |
428 | }, | 428 | }, |
429 | .res = { | 429 | .res = { |
@@ -437,7 +437,7 @@ static struct amba_device uart2_device = { | |||
437 | 437 | ||
438 | static struct amba_device uart3_device = { | 438 | static struct amba_device uart3_device = { |
439 | .dev = { | 439 | .dev = { |
440 | .bus_id = "apb:uart3", | 440 | .init_name = "apb:uart3", |
441 | .platform_data = &ep93xx_uart_data, | 441 | .platform_data = &ep93xx_uart_data, |
442 | }, | 442 | }, |
443 | .res = { | 443 | .res = { |
diff --git a/arch/arm/mach-footbridge/common.c b/arch/arm/mach-footbridge/common.c index 26e444a3cffd..b97f529e58e8 100644 --- a/arch/arm/mach-footbridge/common.c +++ b/arch/arm/mach-footbridge/common.c | |||
@@ -28,8 +28,6 @@ | |||
28 | 28 | ||
29 | #include "common.h" | 29 | #include "common.h" |
30 | 30 | ||
31 | extern void __init isa_init_irq(unsigned int irq); | ||
32 | |||
33 | unsigned int mem_fclk_21285 = 50000000; | 31 | unsigned int mem_fclk_21285 = 50000000; |
34 | 32 | ||
35 | EXPORT_SYMBOL(mem_fclk_21285); | 33 | EXPORT_SYMBOL(mem_fclk_21285); |
diff --git a/arch/arm/mach-footbridge/common.h b/arch/arm/mach-footbridge/common.h index 580e31bbc711..b05e662d21ad 100644 --- a/arch/arm/mach-footbridge/common.h +++ b/arch/arm/mach-footbridge/common.h | |||
@@ -7,3 +7,4 @@ extern void isa_rtc_init(void); | |||
7 | extern void footbridge_map_io(void); | 7 | extern void footbridge_map_io(void); |
8 | extern void footbridge_init_irq(void); | 8 | extern void footbridge_init_irq(void); |
9 | 9 | ||
10 | extern void isa_init_irq(unsigned int irq); | ||
diff --git a/arch/arm/mach-footbridge/dc21285.c b/arch/arm/mach-footbridge/dc21285.c index 133086019e3e..3ffa54841ec5 100644 --- a/arch/arm/mach-footbridge/dc21285.c +++ b/arch/arm/mach-footbridge/dc21285.c | |||
@@ -287,6 +287,9 @@ struct pci_bus * __init dc21285_scan_bus(int nr, struct pci_sys_data *sys) | |||
287 | return pci_scan_bus(0, &dc21285_ops, sys); | 287 | return pci_scan_bus(0, &dc21285_ops, sys); |
288 | } | 288 | } |
289 | 289 | ||
290 | #define dc21285_request_irq(_a, _b, _c, _d, _e) \ | ||
291 | WARN_ON(request_irq(_a, _b, _c, _d, _e) < 0) | ||
292 | |||
290 | void __init dc21285_preinit(void) | 293 | void __init dc21285_preinit(void) |
291 | { | 294 | { |
292 | unsigned int mem_size, mem_mask; | 295 | unsigned int mem_size, mem_mask; |
@@ -335,16 +338,16 @@ void __init dc21285_preinit(void) | |||
335 | /* | 338 | /* |
336 | * We don't care if these fail. | 339 | * We don't care if these fail. |
337 | */ | 340 | */ |
338 | request_irq(IRQ_PCI_SERR, dc21285_serr_irq, IRQF_DISABLED, | 341 | dc21285_request_irq(IRQ_PCI_SERR, dc21285_serr_irq, IRQF_DISABLED, |
339 | "PCI system error", &serr_timer); | 342 | "PCI system error", &serr_timer); |
340 | request_irq(IRQ_PCI_PERR, dc21285_parity_irq, IRQF_DISABLED, | 343 | dc21285_request_irq(IRQ_PCI_PERR, dc21285_parity_irq, IRQF_DISABLED, |
341 | "PCI parity error", &perr_timer); | 344 | "PCI parity error", &perr_timer); |
342 | request_irq(IRQ_PCI_ABORT, dc21285_abort_irq, IRQF_DISABLED, | 345 | dc21285_request_irq(IRQ_PCI_ABORT, dc21285_abort_irq, IRQF_DISABLED, |
343 | "PCI abort", NULL); | 346 | "PCI abort", NULL); |
344 | request_irq(IRQ_DISCARD_TIMER, dc21285_discard_irq, IRQF_DISABLED, | 347 | dc21285_request_irq(IRQ_DISCARD_TIMER, dc21285_discard_irq, IRQF_DISABLED, |
345 | "Discard timer", NULL); | 348 | "Discard timer", NULL); |
346 | request_irq(IRQ_PCI_DPERR, dc21285_dparity_irq, IRQF_DISABLED, | 349 | dc21285_request_irq(IRQ_PCI_DPERR, dc21285_dparity_irq, IRQF_DISABLED, |
347 | "PCI data parity", NULL); | 350 | "PCI data parity", NULL); |
348 | 351 | ||
349 | if (cfn_mode) { | 352 | if (cfn_mode) { |
350 | static struct resource csrio; | 353 | static struct resource csrio; |
diff --git a/arch/arm/mach-footbridge/isa-irq.c b/arch/arm/mach-footbridge/isa-irq.c index 9ee80a211d3c..8bfd06aeb64d 100644 --- a/arch/arm/mach-footbridge/isa-irq.c +++ b/arch/arm/mach-footbridge/isa-irq.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <asm/irq.h> | 28 | #include <asm/irq.h> |
29 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
30 | 30 | ||
31 | #include "common.h" | ||
32 | |||
31 | static void isa_mask_pic_lo_irq(unsigned int irq) | 33 | static void isa_mask_pic_lo_irq(unsigned int irq) |
32 | { | 34 | { |
33 | unsigned int mask = 1 << (irq & 7); | 35 | unsigned int mask = 1 << (irq & 7); |
diff --git a/arch/arm/mach-h720x/h7202-eval.c b/arch/arm/mach-h720x/h7202-eval.c index 56161d55cf47..8c0ba99d683f 100644 --- a/arch/arm/mach-h720x/h7202-eval.c +++ b/arch/arm/mach-h720x/h7202-eval.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <asm/page.h> | 25 | #include <asm/page.h> |
26 | #include <asm/pgtable.h> | 26 | #include <asm/pgtable.h> |
27 | #include <asm/mach/arch.h> | 27 | #include <asm/mach/arch.h> |
28 | #include <mach/irqs.h> | ||
28 | #include <mach/hardware.h> | 29 | #include <mach/hardware.h> |
29 | #include "common.h" | 30 | #include "common.h" |
30 | 31 | ||
diff --git a/arch/arm/mach-imx/time.c b/arch/arm/mach-imx/time.c index a11765f5f23b..aff0ebcfa847 100644 --- a/arch/arm/mach-imx/time.c +++ b/arch/arm/mach-imx/time.c | |||
@@ -184,7 +184,7 @@ static int __init imx_clockevent_init(unsigned long rate) | |||
184 | clockevent_imx.min_delta_ns = | 184 | clockevent_imx.min_delta_ns = |
185 | clockevent_delta2ns(0xf, &clockevent_imx); | 185 | clockevent_delta2ns(0xf, &clockevent_imx); |
186 | 186 | ||
187 | clockevent_imx.cpumask = cpumask_of_cpu(0); | 187 | clockevent_imx.cpumask = cpumask_of(0); |
188 | 188 | ||
189 | clockevents_register_device(&clockevent_imx); | 189 | clockevents_register_device(&clockevent_imx); |
190 | 190 | ||
diff --git a/arch/arm/mach-integrator/core.c b/arch/arm/mach-integrator/core.c index c89c949b4d45..6f8872913073 100644 --- a/arch/arm/mach-integrator/core.c +++ b/arch/arm/mach-integrator/core.c | |||
@@ -37,7 +37,7 @@ static struct amba_pl010_data integrator_uart_data; | |||
37 | 37 | ||
38 | static struct amba_device rtc_device = { | 38 | static struct amba_device rtc_device = { |
39 | .dev = { | 39 | .dev = { |
40 | .bus_id = "mb:15", | 40 | .init_name = "mb:15", |
41 | }, | 41 | }, |
42 | .res = { | 42 | .res = { |
43 | .start = INTEGRATOR_RTC_BASE, | 43 | .start = INTEGRATOR_RTC_BASE, |
@@ -50,7 +50,7 @@ static struct amba_device rtc_device = { | |||
50 | 50 | ||
51 | static struct amba_device uart0_device = { | 51 | static struct amba_device uart0_device = { |
52 | .dev = { | 52 | .dev = { |
53 | .bus_id = "mb:16", | 53 | .init_name = "mb:16", |
54 | .platform_data = &integrator_uart_data, | 54 | .platform_data = &integrator_uart_data, |
55 | }, | 55 | }, |
56 | .res = { | 56 | .res = { |
@@ -64,7 +64,7 @@ static struct amba_device uart0_device = { | |||
64 | 64 | ||
65 | static struct amba_device uart1_device = { | 65 | static struct amba_device uart1_device = { |
66 | .dev = { | 66 | .dev = { |
67 | .bus_id = "mb:17", | 67 | .init_name = "mb:17", |
68 | .platform_data = &integrator_uart_data, | 68 | .platform_data = &integrator_uart_data, |
69 | }, | 69 | }, |
70 | .res = { | 70 | .res = { |
@@ -78,7 +78,7 @@ static struct amba_device uart1_device = { | |||
78 | 78 | ||
79 | static struct amba_device kmi0_device = { | 79 | static struct amba_device kmi0_device = { |
80 | .dev = { | 80 | .dev = { |
81 | .bus_id = "mb:18", | 81 | .init_name = "mb:18", |
82 | }, | 82 | }, |
83 | .res = { | 83 | .res = { |
84 | .start = KMI0_BASE, | 84 | .start = KMI0_BASE, |
@@ -91,7 +91,7 @@ static struct amba_device kmi0_device = { | |||
91 | 91 | ||
92 | static struct amba_device kmi1_device = { | 92 | static struct amba_device kmi1_device = { |
93 | .dev = { | 93 | .dev = { |
94 | .bus_id = "mb:19", | 94 | .init_name = "mb:19", |
95 | }, | 95 | }, |
96 | .res = { | 96 | .res = { |
97 | .start = KMI1_BASE, | 97 | .start = KMI1_BASE, |
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 427c2d8dc123..4ac04055c2ea 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -407,7 +407,7 @@ static struct mmc_platform_data mmc_data = { | |||
407 | 407 | ||
408 | static struct amba_device mmc_device = { | 408 | static struct amba_device mmc_device = { |
409 | .dev = { | 409 | .dev = { |
410 | .bus_id = "mb:1c", | 410 | .init_name = "mb:1c", |
411 | .platform_data = &mmc_data, | 411 | .platform_data = &mmc_data, |
412 | }, | 412 | }, |
413 | .res = { | 413 | .res = { |
@@ -421,7 +421,7 @@ static struct amba_device mmc_device = { | |||
421 | 421 | ||
422 | static struct amba_device aaci_device = { | 422 | static struct amba_device aaci_device = { |
423 | .dev = { | 423 | .dev = { |
424 | .bus_id = "mb:1d", | 424 | .init_name = "mb:1d", |
425 | }, | 425 | }, |
426 | .res = { | 426 | .res = { |
427 | .start = INTCP_PA_AACI_BASE, | 427 | .start = INTCP_PA_AACI_BASE, |
@@ -532,7 +532,7 @@ static struct clcd_board clcd_data = { | |||
532 | 532 | ||
533 | static struct amba_device clcd_device = { | 533 | static struct amba_device clcd_device = { |
534 | .dev = { | 534 | .dev = { |
535 | .bus_id = "mb:c0", | 535 | .init_name = "mb:c0", |
536 | .coherent_dma_mask = ~0, | 536 | .coherent_dma_mask = ~0, |
537 | .platform_data = &clcd_data, | 537 | .platform_data = &clcd_data, |
538 | }, | 538 | }, |
diff --git a/arch/arm/mach-integrator/pci.c b/arch/arm/mach-integrator/pci.c index af7d3ff013ec..2fdb95433f0a 100644 --- a/arch/arm/mach-integrator/pci.c +++ b/arch/arm/mach-integrator/pci.c | |||
@@ -63,13 +63,7 @@ | |||
63 | * | 63 | * |
64 | * Where A = pin 1, B = pin 2 and so on and pin=0 = default = A. | 64 | * Where A = pin 1, B = pin 2 and so on and pin=0 = default = A. |
65 | * Thus, each swizzle is ((pin-1) + (device#-4)) % 4 | 65 | * Thus, each swizzle is ((pin-1) + (device#-4)) % 4 |
66 | * | ||
67 | * The following code swizzles for exactly one bridge. | ||
68 | */ | 66 | */ |
69 | static inline int bridge_swizzle(int pin, unsigned int slot) | ||
70 | { | ||
71 | return (pin + slot) & 3; | ||
72 | } | ||
73 | 67 | ||
74 | /* | 68 | /* |
75 | * This routine handles multiple bridges. | 69 | * This routine handles multiple bridges. |
@@ -81,15 +75,14 @@ static u8 __init integrator_swizzle(struct pci_dev *dev, u8 *pinp) | |||
81 | if (pin == 0) | 75 | if (pin == 0) |
82 | pin = 1; | 76 | pin = 1; |
83 | 77 | ||
84 | pin -= 1; | ||
85 | while (dev->bus->self) { | 78 | while (dev->bus->self) { |
86 | pin = bridge_swizzle(pin, PCI_SLOT(dev->devfn)); | 79 | pin = pci_swizzle_interrupt_pin(dev, pin); |
87 | /* | 80 | /* |
88 | * move up the chain of bridges, swizzling as we go. | 81 | * move up the chain of bridges, swizzling as we go. |
89 | */ | 82 | */ |
90 | dev = dev->bus->self; | 83 | dev = dev->bus->self; |
91 | } | 84 | } |
92 | *pinp = pin + 1; | 85 | *pinp = pin; |
93 | 86 | ||
94 | return PCI_SLOT(dev->devfn); | 87 | return PCI_SLOT(dev->devfn); |
95 | } | 88 | } |
diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c index 7766f469456b..f4656d2ac8a8 100644 --- a/arch/arm/mach-ixp4xx/common.c +++ b/arch/arm/mach-ixp4xx/common.c | |||
@@ -487,7 +487,7 @@ static int __init ixp4xx_clockevent_init(void) | |||
487 | clockevent_delta2ns(0xfffffffe, &clockevent_ixp4xx); | 487 | clockevent_delta2ns(0xfffffffe, &clockevent_ixp4xx); |
488 | clockevent_ixp4xx.min_delta_ns = | 488 | clockevent_ixp4xx.min_delta_ns = |
489 | clockevent_delta2ns(0xf, &clockevent_ixp4xx); | 489 | clockevent_delta2ns(0xf, &clockevent_ixp4xx); |
490 | clockevent_ixp4xx.cpumask = cpumask_of_cpu(0); | 490 | clockevent_ixp4xx.cpumask = cpumask_of(0); |
491 | 491 | ||
492 | clockevents_register_device(&clockevent_ixp4xx); | 492 | clockevents_register_device(&clockevent_ixp4xx); |
493 | return 0; | 493 | return 0; |
diff --git a/arch/arm/mach-ixp4xx/fsg-setup.c b/arch/arm/mach-ixp4xx/fsg-setup.c index e7c6386782ed..5add22fc9899 100644 --- a/arch/arm/mach-ixp4xx/fsg-setup.c +++ b/arch/arm/mach-ixp4xx/fsg-setup.c | |||
@@ -177,7 +177,6 @@ static irqreturn_t fsg_reset_handler(int irq, void *dev_id) | |||
177 | 177 | ||
178 | static void __init fsg_init(void) | 178 | static void __init fsg_init(void) |
179 | { | 179 | { |
180 | DECLARE_MAC_BUF(mac_buf); | ||
181 | uint8_t __iomem *f; | 180 | uint8_t __iomem *f; |
182 | 181 | ||
183 | ixp4xx_sys_init(); | 182 | ixp4xx_sys_init(); |
@@ -256,10 +255,10 @@ static void __init fsg_init(void) | |||
256 | #endif | 255 | #endif |
257 | iounmap(f); | 256 | iounmap(f); |
258 | } | 257 | } |
259 | printk(KERN_INFO "FSG: Using MAC address %s for port 0\n", | 258 | printk(KERN_INFO "FSG: Using MAC address %pM for port 0\n", |
260 | print_mac(mac_buf, fsg_plat_eth[0].hwaddr)); | 259 | fsg_plat_eth[0].hwaddr); |
261 | printk(KERN_INFO "FSG: Using MAC address %s for port 1\n", | 260 | printk(KERN_INFO "FSG: Using MAC address %pM for port 1\n", |
262 | print_mac(mac_buf, fsg_plat_eth[1].hwaddr)); | 261 | fsg_plat_eth[1].hwaddr); |
263 | 262 | ||
264 | } | 263 | } |
265 | 264 | ||
diff --git a/arch/arm/mach-ixp4xx/include/mach/qmgr.h b/arch/arm/mach-ixp4xx/include/mach/qmgr.h index 1e52b95cede5..0cbe6ceb67c5 100644 --- a/arch/arm/mach-ixp4xx/include/mach/qmgr.h +++ b/arch/arm/mach-ixp4xx/include/mach/qmgr.h | |||
@@ -12,6 +12,8 @@ | |||
12 | #include <linux/io.h> | 12 | #include <linux/io.h> |
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | 14 | ||
15 | #define DEBUG_QMGR 0 | ||
16 | |||
15 | #define HALF_QUEUES 32 | 17 | #define HALF_QUEUES 32 |
16 | #define QUEUES 64 /* only 32 lower queues currently supported */ | 18 | #define QUEUES 64 /* only 32 lower queues currently supported */ |
17 | #define MAX_QUEUE_LENGTH 4 /* in dwords */ | 19 | #define MAX_QUEUE_LENGTH 4 /* in dwords */ |
@@ -61,22 +63,51 @@ void qmgr_enable_irq(unsigned int queue); | |||
61 | void qmgr_disable_irq(unsigned int queue); | 63 | void qmgr_disable_irq(unsigned int queue); |
62 | 64 | ||
63 | /* request_ and release_queue() must be called from non-IRQ context */ | 65 | /* request_ and release_queue() must be called from non-IRQ context */ |
66 | |||
67 | #if DEBUG_QMGR | ||
68 | extern char qmgr_queue_descs[QUEUES][32]; | ||
69 | |||
64 | int qmgr_request_queue(unsigned int queue, unsigned int len /* dwords */, | 70 | int qmgr_request_queue(unsigned int queue, unsigned int len /* dwords */, |
65 | unsigned int nearly_empty_watermark, | 71 | unsigned int nearly_empty_watermark, |
66 | unsigned int nearly_full_watermark); | 72 | unsigned int nearly_full_watermark, |
73 | const char *desc_format, const char* name); | ||
74 | #else | ||
75 | int __qmgr_request_queue(unsigned int queue, unsigned int len /* dwords */, | ||
76 | unsigned int nearly_empty_watermark, | ||
77 | unsigned int nearly_full_watermark); | ||
78 | #define qmgr_request_queue(queue, len, nearly_empty_watermark, \ | ||
79 | nearly_full_watermark, desc_format, name) \ | ||
80 | __qmgr_request_queue(queue, len, nearly_empty_watermark, \ | ||
81 | nearly_full_watermark) | ||
82 | #endif | ||
83 | |||
67 | void qmgr_release_queue(unsigned int queue); | 84 | void qmgr_release_queue(unsigned int queue); |
68 | 85 | ||
69 | 86 | ||
70 | static inline void qmgr_put_entry(unsigned int queue, u32 val) | 87 | static inline void qmgr_put_entry(unsigned int queue, u32 val) |
71 | { | 88 | { |
72 | extern struct qmgr_regs __iomem *qmgr_regs; | 89 | extern struct qmgr_regs __iomem *qmgr_regs; |
90 | #if DEBUG_QMGR | ||
91 | BUG_ON(!qmgr_queue_descs[queue]); /* not yet requested */ | ||
92 | |||
93 | printk(KERN_DEBUG "Queue %s(%i) put %X\n", | ||
94 | qmgr_queue_descs[queue], queue, val); | ||
95 | #endif | ||
73 | __raw_writel(val, &qmgr_regs->acc[queue][0]); | 96 | __raw_writel(val, &qmgr_regs->acc[queue][0]); |
74 | } | 97 | } |
75 | 98 | ||
76 | static inline u32 qmgr_get_entry(unsigned int queue) | 99 | static inline u32 qmgr_get_entry(unsigned int queue) |
77 | { | 100 | { |
101 | u32 val; | ||
78 | extern struct qmgr_regs __iomem *qmgr_regs; | 102 | extern struct qmgr_regs __iomem *qmgr_regs; |
79 | return __raw_readl(&qmgr_regs->acc[queue][0]); | 103 | val = __raw_readl(&qmgr_regs->acc[queue][0]); |
104 | #if DEBUG_QMGR | ||
105 | BUG_ON(!qmgr_queue_descs[queue]); /* not yet requested */ | ||
106 | |||
107 | printk(KERN_DEBUG "Queue %s(%i) get %X\n", | ||
108 | qmgr_queue_descs[queue], queue, val); | ||
109 | #endif | ||
110 | return val; | ||
80 | } | 111 | } |
81 | 112 | ||
82 | static inline int qmgr_get_stat1(unsigned int queue) | 113 | static inline int qmgr_get_stat1(unsigned int queue) |
diff --git a/arch/arm/mach-ixp4xx/ixp4xx_qmgr.c b/arch/arm/mach-ixp4xx/ixp4xx_qmgr.c index c6cb069a5a83..bfddc73d0a20 100644 --- a/arch/arm/mach-ixp4xx/ixp4xx_qmgr.c +++ b/arch/arm/mach-ixp4xx/ixp4xx_qmgr.c | |||
@@ -14,8 +14,6 @@ | |||
14 | #include <linux/module.h> | 14 | #include <linux/module.h> |
15 | #include <mach/qmgr.h> | 15 | #include <mach/qmgr.h> |
16 | 16 | ||
17 | #define DEBUG 0 | ||
18 | |||
19 | struct qmgr_regs __iomem *qmgr_regs; | 17 | struct qmgr_regs __iomem *qmgr_regs; |
20 | static struct resource *mem_res; | 18 | static struct resource *mem_res; |
21 | static spinlock_t qmgr_lock; | 19 | static spinlock_t qmgr_lock; |
@@ -23,6 +21,10 @@ static u32 used_sram_bitmap[4]; /* 128 16-dword pages */ | |||
23 | static void (*irq_handlers[HALF_QUEUES])(void *pdev); | 21 | static void (*irq_handlers[HALF_QUEUES])(void *pdev); |
24 | static void *irq_pdevs[HALF_QUEUES]; | 22 | static void *irq_pdevs[HALF_QUEUES]; |
25 | 23 | ||
24 | #if DEBUG_QMGR | ||
25 | char qmgr_queue_descs[QUEUES][32]; | ||
26 | #endif | ||
27 | |||
26 | void qmgr_set_irq(unsigned int queue, int src, | 28 | void qmgr_set_irq(unsigned int queue, int src, |
27 | void (*handler)(void *pdev), void *pdev) | 29 | void (*handler)(void *pdev), void *pdev) |
28 | { | 30 | { |
@@ -70,6 +72,7 @@ void qmgr_disable_irq(unsigned int queue) | |||
70 | spin_lock_irqsave(&qmgr_lock, flags); | 72 | spin_lock_irqsave(&qmgr_lock, flags); |
71 | __raw_writel(__raw_readl(&qmgr_regs->irqen[0]) & ~(1 << queue), | 73 | __raw_writel(__raw_readl(&qmgr_regs->irqen[0]) & ~(1 << queue), |
72 | &qmgr_regs->irqen[0]); | 74 | &qmgr_regs->irqen[0]); |
75 | __raw_writel(1 << queue, &qmgr_regs->irqstat[0]); /* clear */ | ||
73 | spin_unlock_irqrestore(&qmgr_lock, flags); | 76 | spin_unlock_irqrestore(&qmgr_lock, flags); |
74 | } | 77 | } |
75 | 78 | ||
@@ -81,9 +84,16 @@ static inline void shift_mask(u32 *mask) | |||
81 | mask[0] <<= 1; | 84 | mask[0] <<= 1; |
82 | } | 85 | } |
83 | 86 | ||
87 | #if DEBUG_QMGR | ||
84 | int qmgr_request_queue(unsigned int queue, unsigned int len /* dwords */, | 88 | int qmgr_request_queue(unsigned int queue, unsigned int len /* dwords */, |
85 | unsigned int nearly_empty_watermark, | 89 | unsigned int nearly_empty_watermark, |
86 | unsigned int nearly_full_watermark) | 90 | unsigned int nearly_full_watermark, |
91 | const char *desc_format, const char* name) | ||
92 | #else | ||
93 | int __qmgr_request_queue(unsigned int queue, unsigned int len /* dwords */, | ||
94 | unsigned int nearly_empty_watermark, | ||
95 | unsigned int nearly_full_watermark) | ||
96 | #endif | ||
87 | { | 97 | { |
88 | u32 cfg, addr = 0, mask[4]; /* in 16-dwords */ | 98 | u32 cfg, addr = 0, mask[4]; /* in 16-dwords */ |
89 | int err; | 99 | int err; |
@@ -151,12 +161,13 @@ int qmgr_request_queue(unsigned int queue, unsigned int len /* dwords */, | |||
151 | used_sram_bitmap[2] |= mask[2]; | 161 | used_sram_bitmap[2] |= mask[2]; |
152 | used_sram_bitmap[3] |= mask[3]; | 162 | used_sram_bitmap[3] |= mask[3]; |
153 | __raw_writel(cfg | (addr << 14), &qmgr_regs->sram[queue]); | 163 | __raw_writel(cfg | (addr << 14), &qmgr_regs->sram[queue]); |
154 | spin_unlock_irq(&qmgr_lock); | 164 | #if DEBUG_QMGR |
155 | 165 | snprintf(qmgr_queue_descs[queue], sizeof(qmgr_queue_descs[0]), | |
156 | #if DEBUG | 166 | desc_format, name); |
157 | printk(KERN_DEBUG "qmgr: requested queue %i, addr = 0x%02X\n", | 167 | printk(KERN_DEBUG "qmgr: requested queue %s(%i) addr = 0x%02X\n", |
158 | queue, addr); | 168 | qmgr_queue_descs[queue], queue, addr); |
159 | #endif | 169 | #endif |
170 | spin_unlock_irq(&qmgr_lock); | ||
160 | return 0; | 171 | return 0; |
161 | 172 | ||
162 | err: | 173 | err: |
@@ -189,6 +200,11 @@ void qmgr_release_queue(unsigned int queue) | |||
189 | while (addr--) | 200 | while (addr--) |
190 | shift_mask(mask); | 201 | shift_mask(mask); |
191 | 202 | ||
203 | #if DEBUG_QMGR | ||
204 | printk(KERN_DEBUG "qmgr: releasing queue %s(%i)\n", | ||
205 | qmgr_queue_descs[queue], queue); | ||
206 | qmgr_queue_descs[queue][0] = '\x0'; | ||
207 | #endif | ||
192 | __raw_writel(0, &qmgr_regs->sram[queue]); | 208 | __raw_writel(0, &qmgr_regs->sram[queue]); |
193 | 209 | ||
194 | used_sram_bitmap[0] &= ~mask[0]; | 210 | used_sram_bitmap[0] &= ~mask[0]; |
@@ -199,9 +215,10 @@ void qmgr_release_queue(unsigned int queue) | |||
199 | spin_unlock_irq(&qmgr_lock); | 215 | spin_unlock_irq(&qmgr_lock); |
200 | 216 | ||
201 | module_put(THIS_MODULE); | 217 | module_put(THIS_MODULE); |
202 | #if DEBUG | 218 | |
203 | printk(KERN_DEBUG "qmgr: released queue %i\n", queue); | 219 | while ((addr = qmgr_get_entry(queue))) |
204 | #endif | 220 | printk(KERN_ERR "qmgr: released queue %i not empty: 0x%08X\n", |
221 | queue, addr); | ||
205 | } | 222 | } |
206 | 223 | ||
207 | static int qmgr_init(void) | 224 | static int qmgr_init(void) |
@@ -272,5 +289,10 @@ EXPORT_SYMBOL(qmgr_regs); | |||
272 | EXPORT_SYMBOL(qmgr_set_irq); | 289 | EXPORT_SYMBOL(qmgr_set_irq); |
273 | EXPORT_SYMBOL(qmgr_enable_irq); | 290 | EXPORT_SYMBOL(qmgr_enable_irq); |
274 | EXPORT_SYMBOL(qmgr_disable_irq); | 291 | EXPORT_SYMBOL(qmgr_disable_irq); |
292 | #if DEBUG_QMGR | ||
293 | EXPORT_SYMBOL(qmgr_queue_descs); | ||
275 | EXPORT_SYMBOL(qmgr_request_queue); | 294 | EXPORT_SYMBOL(qmgr_request_queue); |
295 | #else | ||
296 | EXPORT_SYMBOL(__qmgr_request_queue); | ||
297 | #endif | ||
276 | EXPORT_SYMBOL(qmgr_release_queue); | 298 | EXPORT_SYMBOL(qmgr_release_queue); |
diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c b/arch/arm/mach-ixp4xx/nas100d-setup.c index 0acd95ecf27e..921c947b5b6b 100644 --- a/arch/arm/mach-ixp4xx/nas100d-setup.c +++ b/arch/arm/mach-ixp4xx/nas100d-setup.c | |||
@@ -231,7 +231,6 @@ static irqreturn_t nas100d_reset_handler(int irq, void *dev_id) | |||
231 | 231 | ||
232 | static void __init nas100d_init(void) | 232 | static void __init nas100d_init(void) |
233 | { | 233 | { |
234 | DECLARE_MAC_BUF(mac_buf); | ||
235 | uint8_t __iomem *f; | 234 | uint8_t __iomem *f; |
236 | int i; | 235 | int i; |
237 | 236 | ||
@@ -294,8 +293,8 @@ static void __init nas100d_init(void) | |||
294 | #endif | 293 | #endif |
295 | iounmap(f); | 294 | iounmap(f); |
296 | } | 295 | } |
297 | printk(KERN_INFO "NAS100D: Using MAC address %s for port 0\n", | 296 | printk(KERN_INFO "NAS100D: Using MAC address %pM for port 0\n", |
298 | print_mac(mac_buf, nas100d_plat_eth[0].hwaddr)); | 297 | nas100d_plat_eth[0].hwaddr); |
299 | 298 | ||
300 | } | 299 | } |
301 | 300 | ||
diff --git a/arch/arm/mach-ixp4xx/nslu2-setup.c b/arch/arm/mach-ixp4xx/nslu2-setup.c index bc9d920ae54f..ff6a08d02cc4 100644 --- a/arch/arm/mach-ixp4xx/nslu2-setup.c +++ b/arch/arm/mach-ixp4xx/nslu2-setup.c | |||
@@ -220,7 +220,6 @@ static struct sys_timer nslu2_timer = { | |||
220 | 220 | ||
221 | static void __init nslu2_init(void) | 221 | static void __init nslu2_init(void) |
222 | { | 222 | { |
223 | DECLARE_MAC_BUF(mac_buf); | ||
224 | uint8_t __iomem *f; | 223 | uint8_t __iomem *f; |
225 | int i; | 224 | int i; |
226 | 225 | ||
@@ -275,8 +274,8 @@ static void __init nslu2_init(void) | |||
275 | #endif | 274 | #endif |
276 | iounmap(f); | 275 | iounmap(f); |
277 | } | 276 | } |
278 | printk(KERN_INFO "NSLU2: Using MAC address %s for port 0\n", | 277 | printk(KERN_INFO "NSLU2: Using MAC address %pM for port 0\n", |
279 | print_mac(mac_buf, nslu2_plat_eth[0].hwaddr)); | 278 | nslu2_plat_eth[0].hwaddr); |
280 | 279 | ||
281 | } | 280 | } |
282 | 281 | ||
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index 7b8ef97fb501..b3404b7775b3 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c | |||
@@ -698,6 +698,7 @@ void __init kirkwood_init(void) | |||
698 | printk(KERN_INFO "Kirkwood: %s, TCLK=%d.\n", | 698 | printk(KERN_INFO "Kirkwood: %s, TCLK=%d.\n", |
699 | kirkwood_id(), kirkwood_tclk); | 699 | kirkwood_id(), kirkwood_tclk); |
700 | kirkwood_ge00_shared_data.t_clk = kirkwood_tclk; | 700 | kirkwood_ge00_shared_data.t_clk = kirkwood_tclk; |
701 | kirkwood_ge01_shared_data.t_clk = kirkwood_tclk; | ||
701 | kirkwood_spi_plat_data.tclk = kirkwood_tclk; | 702 | kirkwood_spi_plat_data.tclk = kirkwood_tclk; |
702 | kirkwood_uart0_data[0].uartclk = kirkwood_tclk; | 703 | kirkwood_uart0_data[0].uartclk = kirkwood_tclk; |
703 | kirkwood_uart1_data[0].uartclk = kirkwood_tclk; | 704 | kirkwood_uart1_data[0].uartclk = kirkwood_tclk; |
diff --git a/arch/arm/mach-kirkwood/pcie.c b/arch/arm/mach-kirkwood/pcie.c index f6b08f207c89..73fccacd1a73 100644 --- a/arch/arm/mach-kirkwood/pcie.c +++ b/arch/arm/mach-kirkwood/pcie.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/pci.h> | 12 | #include <linux/pci.h> |
13 | #include <linux/mbus.h> | 13 | #include <linux/mbus.h> |
14 | #include <asm/irq.h> | ||
14 | #include <asm/mach/pci.h> | 15 | #include <asm/mach/pci.h> |
15 | #include <plat/pcie.h> | 16 | #include <plat/pcie.h> |
16 | #include "common.h" | 17 | #include "common.h" |
diff --git a/arch/arm/mach-ks8695/devices.c b/arch/arm/mach-ks8695/devices.c index 36ab0fd3d9b6..b89fb6d46ccc 100644 --- a/arch/arm/mach-ks8695/devices.c +++ b/arch/arm/mach-ks8695/devices.c | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | 24 | ||
25 | #include <mach/irqs.h> | ||
25 | #include <mach/regs-wan.h> | 26 | #include <mach/regs-wan.h> |
26 | #include <mach/regs-lan.h> | 27 | #include <mach/regs-lan.h> |
27 | #include <mach/regs-hpna.h> | 28 | #include <mach/regs-hpna.h> |
diff --git a/arch/arm/mach-lh7a40x/clcd.c b/arch/arm/mach-lh7a40x/clcd.c index a2a543258fc3..c472b9e8b37c 100644 --- a/arch/arm/mach-lh7a40x/clcd.c +++ b/arch/arm/mach-lh7a40x/clcd.c | |||
@@ -207,7 +207,7 @@ static struct clcd_board clcd_platform_data = { | |||
207 | static struct amba_device name##_device = { \ | 207 | static struct amba_device name##_device = { \ |
208 | .dev = { \ | 208 | .dev = { \ |
209 | .coherent_dma_mask = ~0, \ | 209 | .coherent_dma_mask = ~0, \ |
210 | .bus_id = busid, \ | 210 | .init_name = busid, \ |
211 | .platform_data = plat, \ | 211 | .platform_data = plat, \ |
212 | }, \ | 212 | }, \ |
213 | .res = { \ | 213 | .res = { \ |
diff --git a/arch/arm/mach-msm/devices.c b/arch/arm/mach-msm/devices.c index f2a74b92a97f..31b6b30e98bf 100644 --- a/arch/arm/mach-msm/devices.c +++ b/arch/arm/mach-msm/devices.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
17 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
18 | 18 | ||
19 | #include <mach/irqs.h> | ||
19 | #include <mach/msm_iomap.h> | 20 | #include <mach/msm_iomap.h> |
20 | #include "devices.h" | 21 | #include "devices.h" |
21 | 22 | ||
diff --git a/arch/arm/mach-msm/timer.c b/arch/arm/mach-msm/timer.c index 345a14cb73c3..444d9c0f5ca6 100644 --- a/arch/arm/mach-msm/timer.c +++ b/arch/arm/mach-msm/timer.c | |||
@@ -182,7 +182,7 @@ static void __init msm_timer_init(void) | |||
182 | clockevent_delta2ns(0xf0000000 >> clock->shift, ce); | 182 | clockevent_delta2ns(0xf0000000 >> clock->shift, ce); |
183 | /* 4 gets rounded down to 3 */ | 183 | /* 4 gets rounded down to 3 */ |
184 | ce->min_delta_ns = clockevent_delta2ns(4, ce); | 184 | ce->min_delta_ns = clockevent_delta2ns(4, ce); |
185 | ce->cpumask = cpumask_of_cpu(0); | 185 | ce->cpumask = cpumask_of(0); |
186 | 186 | ||
187 | cs->mult = clocksource_hz2mult(clock->freq, cs->shift); | 187 | cs->mult = clocksource_hz2mult(clock->freq, cs->shift); |
188 | res = clocksource_register(cs); | 188 | res = clocksource_register(cs); |
diff --git a/arch/arm/mach-mv78xx0/pcie.c b/arch/arm/mach-mv78xx0/pcie.c index 430ea84d587d..aad3a7a2f830 100644 --- a/arch/arm/mach-mv78xx0/pcie.c +++ b/arch/arm/mach-mv78xx0/pcie.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/pci.h> | 12 | #include <linux/pci.h> |
13 | #include <linux/mbus.h> | 13 | #include <linux/mbus.h> |
14 | #include <asm/irq.h> | ||
14 | #include <asm/mach/pci.h> | 15 | #include <asm/mach/pci.h> |
15 | #include <plat/pcie.h> | 16 | #include <plat/pcie.h> |
16 | #include "common.h" | 17 | #include "common.h" |
diff --git a/arch/arm/mach-mx2/devices.c b/arch/arm/mach-mx2/devices.c index af121f5ab710..2f9240be1c76 100644 --- a/arch/arm/mach-mx2/devices.c +++ b/arch/arm/mach-mx2/devices.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/platform_device.h> | 32 | #include <linux/platform_device.h> |
33 | #include <linux/gpio.h> | 33 | #include <linux/gpio.h> |
34 | 34 | ||
35 | #include <mach/irqs.h> | ||
35 | #include <mach/hardware.h> | 36 | #include <mach/hardware.h> |
36 | 37 | ||
37 | /* | 38 | /* |
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index 1d46cb4adf96..f8428800f286 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/serial.h> | 22 | #include <linux/serial.h> |
23 | #include <linux/gpio.h> | 23 | #include <linux/gpio.h> |
24 | #include <mach/hardware.h> | 24 | #include <mach/hardware.h> |
25 | #include <mach/irqs.h> | ||
25 | #include <mach/imx-uart.h> | 26 | #include <mach/imx-uart.h> |
26 | 27 | ||
27 | static struct resource uart0[] = { | 28 | static struct resource uart0[] = { |
diff --git a/arch/arm/mach-netx/fb.c b/arch/arm/mach-netx/fb.c index 8f1f992f002e..1d844e228ea9 100644 --- a/arch/arm/mach-netx/fb.c +++ b/arch/arm/mach-netx/fb.c | |||
@@ -24,6 +24,8 @@ | |||
24 | #include <linux/amba/clcd.h> | 24 | #include <linux/amba/clcd.h> |
25 | #include <linux/err.h> | 25 | #include <linux/err.h> |
26 | 26 | ||
27 | #include <asm/irq.h> | ||
28 | |||
27 | #include <mach/netx-regs.h> | 29 | #include <mach/netx-regs.h> |
28 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
29 | 31 | ||
@@ -91,7 +93,7 @@ void clk_put(struct clk *clk) | |||
91 | 93 | ||
92 | static struct amba_device fb_device = { | 94 | static struct amba_device fb_device = { |
93 | .dev = { | 95 | .dev = { |
94 | .bus_id = "fb", | 96 | .init_name = "fb", |
95 | .coherent_dma_mask = ~0, | 97 | .coherent_dma_mask = ~0, |
96 | }, | 98 | }, |
97 | .res = { | 99 | .res = { |
diff --git a/arch/arm/mach-netx/time.c b/arch/arm/mach-netx/time.c index d51d627ce7cf..f201fddb594f 100644 --- a/arch/arm/mach-netx/time.c +++ b/arch/arm/mach-netx/time.c | |||
@@ -163,7 +163,7 @@ static void __init netx_timer_init(void) | |||
163 | * Adding some safety ... */ | 163 | * Adding some safety ... */ |
164 | netx_clockevent.min_delta_ns = | 164 | netx_clockevent.min_delta_ns = |
165 | clockevent_delta2ns(0xa00, &netx_clockevent); | 165 | clockevent_delta2ns(0xa00, &netx_clockevent); |
166 | netx_clockevent.cpumask = cpumask_of_cpu(0); | 166 | netx_clockevent.cpumask = cpumask_of(0); |
167 | clockevents_register_device(&netx_clockevent); | 167 | clockevents_register_device(&netx_clockevent); |
168 | } | 168 | } |
169 | 169 | ||
diff --git a/arch/arm/mach-netx/xc.c b/arch/arm/mach-netx/xc.c index 8fc6205dc3a5..181a78ba8165 100644 --- a/arch/arm/mach-netx/xc.c +++ b/arch/arm/mach-netx/xc.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/io.h> | 24 | #include <linux/io.h> |
25 | 25 | ||
26 | #include <mach/hardware.h> | 26 | #include <mach/hardware.h> |
27 | #include <mach/irqs.h> | ||
27 | #include <mach/netx-regs.h> | 28 | #include <mach/netx-regs.h> |
28 | 29 | ||
29 | #include <mach/xc.h> | 30 | #include <mach/xc.h> |
diff --git a/arch/arm/mach-ns9xxx/time-ns9360.c b/arch/arm/mach-ns9xxx/time-ns9360.c index a63424d083d9..41df69721769 100644 --- a/arch/arm/mach-ns9xxx/time-ns9360.c +++ b/arch/arm/mach-ns9xxx/time-ns9360.c | |||
@@ -173,7 +173,7 @@ static void __init ns9360_timer_init(void) | |||
173 | ns9360_clockevent_device.min_delta_ns = | 173 | ns9360_clockevent_device.min_delta_ns = |
174 | clockevent_delta2ns(1, &ns9360_clockevent_device); | 174 | clockevent_delta2ns(1, &ns9360_clockevent_device); |
175 | 175 | ||
176 | ns9360_clockevent_device.cpumask = cpumask_of_cpu(0); | 176 | ns9360_clockevent_device.cpumask = cpumask_of(0); |
177 | clockevents_register_device(&ns9360_clockevent_device); | 177 | clockevents_register_device(&ns9360_clockevent_device); |
178 | 178 | ||
179 | setup_irq(IRQ_NS9360_TIMER0 + TIMER_CLOCKEVENT, | 179 | setup_irq(IRQ_NS9360_TIMER0 + TIMER_CLOCKEVENT, |
diff --git a/arch/arm/mach-omap1/mcbsp.c b/arch/arm/mach-omap1/mcbsp.c index 7de7c6915584..4474da7bc88a 100644 --- a/arch/arm/mach-omap1/mcbsp.c +++ b/arch/arm/mach-omap1/mcbsp.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | 19 | ||
20 | #include <mach/dma.h> | 20 | #include <mach/dma.h> |
21 | #include <mach/irqs.h> | ||
21 | #include <mach/mux.h> | 22 | #include <mach/mux.h> |
22 | #include <mach/cpu.h> | 23 | #include <mach/cpu.h> |
23 | #include <mach/mcbsp.h> | 24 | #include <mach/mcbsp.h> |
diff --git a/arch/arm/mach-omap1/time.c b/arch/arm/mach-omap1/time.c index 2cf7e32bd293..495a32c287b4 100644 --- a/arch/arm/mach-omap1/time.c +++ b/arch/arm/mach-omap1/time.c | |||
@@ -173,7 +173,7 @@ static __init void omap_init_mpu_timer(unsigned long rate) | |||
173 | clockevent_mpu_timer1.min_delta_ns = | 173 | clockevent_mpu_timer1.min_delta_ns = |
174 | clockevent_delta2ns(1, &clockevent_mpu_timer1); | 174 | clockevent_delta2ns(1, &clockevent_mpu_timer1); |
175 | 175 | ||
176 | clockevent_mpu_timer1.cpumask = cpumask_of_cpu(0); | 176 | clockevent_mpu_timer1.cpumask = cpumask_of(0); |
177 | clockevents_register_device(&clockevent_mpu_timer1); | 177 | clockevents_register_device(&clockevent_mpu_timer1); |
178 | } | 178 | } |
179 | 179 | ||
diff --git a/arch/arm/mach-omap1/timer32k.c b/arch/arm/mach-omap1/timer32k.c index 705367ece174..fd3f7396e162 100644 --- a/arch/arm/mach-omap1/timer32k.c +++ b/arch/arm/mach-omap1/timer32k.c | |||
@@ -187,7 +187,7 @@ static __init void omap_init_32k_timer(void) | |||
187 | clockevent_32k_timer.min_delta_ns = | 187 | clockevent_32k_timer.min_delta_ns = |
188 | clockevent_delta2ns(1, &clockevent_32k_timer); | 188 | clockevent_delta2ns(1, &clockevent_32k_timer); |
189 | 189 | ||
190 | clockevent_32k_timer.cpumask = cpumask_of_cpu(0); | 190 | clockevent_32k_timer.cpumask = cpumask_of(0); |
191 | clockevents_register_device(&clockevent_32k_timer); | 191 | clockevents_register_device(&clockevent_32k_timer); |
192 | } | 192 | } |
193 | 193 | ||
diff --git a/arch/arm/mach-omap2/clock24xx.h b/arch/arm/mach-omap2/clock24xx.h index ff6cd14d254d..ad6d98d177c5 100644 --- a/arch/arm/mach-omap2/clock24xx.h +++ b/arch/arm/mach-omap2/clock24xx.h | |||
@@ -2321,7 +2321,7 @@ static struct clk i2c2_fck = { | |||
2321 | }; | 2321 | }; |
2322 | 2322 | ||
2323 | static struct clk i2chs2_fck = { | 2323 | static struct clk i2chs2_fck = { |
2324 | .name = "i2chs_fck", | 2324 | .name = "i2c_fck", |
2325 | .id = 2, | 2325 | .id = 2, |
2326 | .parent = &func_96m_ck, | 2326 | .parent = &func_96m_ck, |
2327 | .flags = CLOCK_IN_OMAP243X, | 2327 | .flags = CLOCK_IN_OMAP243X, |
@@ -2354,7 +2354,7 @@ static struct clk i2c1_fck = { | |||
2354 | }; | 2354 | }; |
2355 | 2355 | ||
2356 | static struct clk i2chs1_fck = { | 2356 | static struct clk i2chs1_fck = { |
2357 | .name = "i2chs_fck", | 2357 | .name = "i2c_fck", |
2358 | .id = 1, | 2358 | .id = 1, |
2359 | .parent = &func_96m_ck, | 2359 | .parent = &func_96m_ck, |
2360 | .flags = CLOCK_IN_OMAP243X, | 2360 | .flags = CLOCK_IN_OMAP243X, |
diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index cae3ebe249b3..acdc709901cd 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | 19 | ||
20 | #include <mach/dma.h> | 20 | #include <mach/dma.h> |
21 | #include <mach/irqs.h> | ||
21 | #include <mach/mux.h> | 22 | #include <mach/mux.h> |
22 | #include <mach/cpu.h> | 23 | #include <mach/cpu.h> |
23 | #include <mach/mcbsp.h> | 24 | #include <mach/mcbsp.h> |
diff --git a/arch/arm/mach-omap2/timer-gp.c b/arch/arm/mach-omap2/timer-gp.c index 589393bedade..ae6036300f60 100644 --- a/arch/arm/mach-omap2/timer-gp.c +++ b/arch/arm/mach-omap2/timer-gp.c | |||
@@ -120,7 +120,7 @@ static void __init omap2_gp_clockevent_init(void) | |||
120 | clockevent_gpt.min_delta_ns = | 120 | clockevent_gpt.min_delta_ns = |
121 | clockevent_delta2ns(1, &clockevent_gpt); | 121 | clockevent_delta2ns(1, &clockevent_gpt); |
122 | 122 | ||
123 | clockevent_gpt.cpumask = cpumask_of_cpu(0); | 123 | clockevent_gpt.cpumask = cpumask_of(0); |
124 | clockevents_register_device(&clockevent_gpt); | 124 | clockevents_register_device(&clockevent_gpt); |
125 | } | 125 | } |
126 | 126 | ||
diff --git a/arch/arm/mach-orion5x/pci.c b/arch/arm/mach-orion5x/pci.c index a7b7d77b1b09..d0a785a3b880 100644 --- a/arch/arm/mach-orion5x/pci.c +++ b/arch/arm/mach-orion5x/pci.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/pci.h> | 14 | #include <linux/pci.h> |
15 | #include <linux/mbus.h> | 15 | #include <linux/mbus.h> |
16 | #include <asm/irq.h> | ||
16 | #include <asm/mach/pci.h> | 17 | #include <asm/mach/pci.h> |
17 | #include <plat/pcie.h> | 18 | #include <plat/pcie.h> |
18 | #include "common.h" | 19 | #include "common.h" |
diff --git a/arch/arm/mach-pnx4008/gpio.c b/arch/arm/mach-pnx4008/gpio.c index 015cc21d5f55..f219914f5b29 100644 --- a/arch/arm/mach-pnx4008/gpio.c +++ b/arch/arm/mach-pnx4008/gpio.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <linux/io.h> | 20 | #include <linux/io.h> |
21 | #include <mach/hardware.h> | ||
21 | #include <mach/platform.h> | 22 | #include <mach/platform.h> |
22 | #include <mach/gpio.h> | 23 | #include <mach/gpio.h> |
23 | 24 | ||
diff --git a/arch/arm/mach-pnx4008/i2c.c b/arch/arm/mach-pnx4008/i2c.c index 87c093286ff9..f3fea29c00d3 100644 --- a/arch/arm/mach-pnx4008/i2c.c +++ b/arch/arm/mach-pnx4008/i2c.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/platform_device.h> | 15 | #include <linux/platform_device.h> |
16 | #include <linux/err.h> | 16 | #include <linux/err.h> |
17 | #include <mach/platform.h> | 17 | #include <mach/platform.h> |
18 | #include <mach/irqs.h> | ||
18 | #include <mach/i2c.h> | 19 | #include <mach/i2c.h> |
19 | 20 | ||
20 | static int set_clock_run(struct platform_device *pdev) | 21 | static int set_clock_run(struct platform_device *pdev) |
diff --git a/arch/arm/mach-pxa/e350.c b/arch/arm/mach-pxa/e350.c index 251129391d7d..edcd9d5ce545 100644 --- a/arch/arm/mach-pxa/e350.c +++ b/arch/arm/mach-pxa/e350.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <asm/mach/arch.h> | 20 | #include <asm/mach/arch.h> |
21 | #include <asm/mach-types.h> | 21 | #include <asm/mach-types.h> |
22 | 22 | ||
23 | #include <mach/irqs.h> | ||
23 | #include <mach/mfp-pxa25x.h> | 24 | #include <mach/mfp-pxa25x.h> |
24 | #include <mach/pxa-regs.h> | 25 | #include <mach/pxa-regs.h> |
25 | #include <mach/hardware.h> | 26 | #include <mach/hardware.h> |
diff --git a/arch/arm/mach-pxa/e400.c b/arch/arm/mach-pxa/e400.c index bed0336aca3d..77bb8e2c48c0 100644 --- a/arch/arm/mach-pxa/e400.c +++ b/arch/arm/mach-pxa/e400.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <mach/eseries-gpio.h> | 28 | #include <mach/eseries-gpio.h> |
29 | #include <mach/pxafb.h> | 29 | #include <mach/pxafb.h> |
30 | #include <mach/udc.h> | 30 | #include <mach/udc.h> |
31 | #include <mach/irqs.h> | ||
31 | 32 | ||
32 | #include "generic.h" | 33 | #include "generic.h" |
33 | #include "eseries.h" | 34 | #include "eseries.h" |
diff --git a/arch/arm/mach-pxa/e740.c b/arch/arm/mach-pxa/e740.c index b00d670b2ea6..6d48e00f4f0b 100644 --- a/arch/arm/mach-pxa/e740.c +++ b/arch/arm/mach-pxa/e740.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <mach/eseries-gpio.h> | 30 | #include <mach/eseries-gpio.h> |
31 | #include <mach/udc.h> | 31 | #include <mach/udc.h> |
32 | #include <mach/irda.h> | 32 | #include <mach/irda.h> |
33 | #include <mach/irqs.h> | ||
33 | 34 | ||
34 | #include "generic.h" | 35 | #include "generic.h" |
35 | #include "eseries.h" | 36 | #include "eseries.h" |
diff --git a/arch/arm/mach-pxa/e750.c b/arch/arm/mach-pxa/e750.c index 7ad76539c841..be1ab8edb973 100644 --- a/arch/arm/mach-pxa/e750.c +++ b/arch/arm/mach-pxa/e750.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <mach/eseries-gpio.h> | 29 | #include <mach/eseries-gpio.h> |
30 | #include <mach/udc.h> | 30 | #include <mach/udc.h> |
31 | #include <mach/irda.h> | 31 | #include <mach/irda.h> |
32 | #include <mach/irqs.h> | ||
32 | 33 | ||
33 | #include "generic.h" | 34 | #include "generic.h" |
34 | #include "eseries.h" | 35 | #include "eseries.h" |
diff --git a/arch/arm/mach-pxa/e800.c b/arch/arm/mach-pxa/e800.c index 9a86a426f924..cc9b1293e866 100644 --- a/arch/arm/mach-pxa/e800.c +++ b/arch/arm/mach-pxa/e800.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <mach/hardware.h> | 28 | #include <mach/hardware.h> |
29 | #include <mach/eseries-gpio.h> | 29 | #include <mach/eseries-gpio.h> |
30 | #include <mach/udc.h> | 30 | #include <mach/udc.h> |
31 | #include <mach/irqs.h> | ||
31 | 32 | ||
32 | #include "generic.h" | 33 | #include "generic.h" |
33 | #include "eseries.h" | 34 | #include "eseries.h" |
diff --git a/arch/arm/mach-pxa/include/mach/palmasoc.h b/arch/arm/mach-pxa/include/mach/palmasoc.h new file mode 100644 index 000000000000..6c4b1f7de20a --- /dev/null +++ b/arch/arm/mach-pxa/include/mach/palmasoc.h | |||
@@ -0,0 +1,13 @@ | |||
1 | #ifndef _INCLUDE_PALMASOC_H_ | ||
2 | #define _INCLUDE_PALMASOC_H_ | ||
3 | struct palm27x_asoc_info { | ||
4 | int jack_gpio; | ||
5 | }; | ||
6 | |||
7 | #ifdef CONFIG_SND_PXA2XX_SOC_PALM27X | ||
8 | void __init palm27x_asoc_set_pdata(struct palm27x_asoc_info *data); | ||
9 | #else | ||
10 | static inline void palm27x_asoc_set_pdata(struct palm27x_asoc_info *data) {} | ||
11 | #endif | ||
12 | |||
13 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h b/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h index b1fcd10ab6c6..bcf3fb2c4b3a 100644 --- a/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h +++ b/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h | |||
@@ -193,10 +193,8 @@ | |||
193 | #define CKEN_MINI_IM 48 /* < Mini-IM */ | 193 | #define CKEN_MINI_IM 48 /* < Mini-IM */ |
194 | #define CKEN_MINI_LCD 49 /* < Mini LCD */ | 194 | #define CKEN_MINI_LCD 49 /* < Mini LCD */ |
195 | 195 | ||
196 | #if defined(CONFIG_CPU_PXA310) | ||
197 | #define CKEN_MMC3 5 /* < MMC3 Clock Enable */ | 196 | #define CKEN_MMC3 5 /* < MMC3 Clock Enable */ |
198 | #define CKEN_MVED 43 /* < MVED clock enable */ | 197 | #define CKEN_MVED 43 /* < MVED clock enable */ |
199 | #endif | ||
200 | 198 | ||
201 | /* Note: GCU clock enable bit differs on PXA300/PXA310 and PXA320 */ | 199 | /* Note: GCU clock enable bit differs on PXA300/PXA310 and PXA320 */ |
202 | #define PXA300_CKEN_GRAPHICS 42 /* Graphics controller clock enable */ | 200 | #define PXA300_CKEN_GRAPHICS 42 /* Graphics controller clock enable */ |
diff --git a/arch/arm/mach-pxa/include/mach/pxa930_rotary.h b/arch/arm/mach-pxa/include/mach/pxa930_rotary.h new file mode 100644 index 000000000000..053587caffdd --- /dev/null +++ b/arch/arm/mach-pxa/include/mach/pxa930_rotary.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef __ASM_ARCH_PXA930_ROTARY_H | ||
2 | #define __ASM_ARCH_PXA930_ROTARY_H | ||
3 | |||
4 | /* NOTE: | ||
5 | * | ||
6 | * rotary can be either interpreted as a ralative input event (e.g. | ||
7 | * REL_WHEEL or REL_HWHEEL) or a specific key event (e.g. UP/DOWN | ||
8 | * or LEFT/RIGHT), depending on if up_key & down_key are assigned | ||
9 | * or rel_code is assigned a non-zero value. When all are non-zero, | ||
10 | * up_key and down_key will be preferred. | ||
11 | */ | ||
12 | struct pxa930_rotary_platform_data { | ||
13 | int up_key; | ||
14 | int down_key; | ||
15 | int rel_code; | ||
16 | }; | ||
17 | |||
18 | void __init pxa930_set_rotarykey_info(struct pxa930_rotary_platform_data *info); | ||
19 | |||
20 | #endif /* __ASM_ARCH_PXA930_ROTARY_H */ | ||
diff --git a/arch/arm/mach-pxa/include/mach/pxa930_trkball.h b/arch/arm/mach-pxa/include/mach/pxa930_trkball.h new file mode 100644 index 000000000000..5e0789bc4729 --- /dev/null +++ b/arch/arm/mach-pxa/include/mach/pxa930_trkball.h | |||
@@ -0,0 +1,10 @@ | |||
1 | #ifndef __ASM_ARCH_PXA930_TRKBALL_H | ||
2 | #define __ASM_ARCH_PXA930_TRKBALL_H | ||
3 | |||
4 | struct pxa930_trkball_platform_data { | ||
5 | int x_filter; | ||
6 | int y_filter; | ||
7 | }; | ||
8 | |||
9 | #endif /* __ASM_ARCH_PXA930_TRKBALL_H */ | ||
10 | |||
diff --git a/arch/arm/mach-pxa/time.c b/arch/arm/mach-pxa/time.c index 001624158519..95656a72268d 100644 --- a/arch/arm/mach-pxa/time.c +++ b/arch/arm/mach-pxa/time.c | |||
@@ -122,7 +122,6 @@ static struct clock_event_device ckevt_pxa_osmr0 = { | |||
122 | .features = CLOCK_EVT_FEAT_ONESHOT, | 122 | .features = CLOCK_EVT_FEAT_ONESHOT, |
123 | .shift = 32, | 123 | .shift = 32, |
124 | .rating = 200, | 124 | .rating = 200, |
125 | .cpumask = CPU_MASK_CPU0, | ||
126 | .set_next_event = pxa_osmr0_set_next_event, | 125 | .set_next_event = pxa_osmr0_set_next_event, |
127 | .set_mode = pxa_osmr0_set_mode, | 126 | .set_mode = pxa_osmr0_set_mode, |
128 | }; | 127 | }; |
@@ -163,6 +162,7 @@ static void __init pxa_timer_init(void) | |||
163 | clockevent_delta2ns(0x7fffffff, &ckevt_pxa_osmr0); | 162 | clockevent_delta2ns(0x7fffffff, &ckevt_pxa_osmr0); |
164 | ckevt_pxa_osmr0.min_delta_ns = | 163 | ckevt_pxa_osmr0.min_delta_ns = |
165 | clockevent_delta2ns(MIN_OSCR_DELTA * 2, &ckevt_pxa_osmr0) + 1; | 164 | clockevent_delta2ns(MIN_OSCR_DELTA * 2, &ckevt_pxa_osmr0) + 1; |
165 | ckevt_pxa_osmr0.cpumask = cpumask_of(0); | ||
166 | 166 | ||
167 | cksrc_pxa_oscr0.mult = | 167 | cksrc_pxa_oscr0.mult = |
168 | clocksource_hz2mult(clock_tick_rate, cksrc_pxa_oscr0.shift); | 168 | clocksource_hz2mult(clock_tick_rate, cksrc_pxa_oscr0.shift); |
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index 5f1d55963ced..bd2aa4f16141 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
@@ -624,7 +624,7 @@ static struct clock_event_device timer0_clockevent = { | |||
624 | .set_mode = timer_set_mode, | 624 | .set_mode = timer_set_mode, |
625 | .set_next_event = timer_set_next_event, | 625 | .set_next_event = timer_set_next_event, |
626 | .rating = 300, | 626 | .rating = 300, |
627 | .cpumask = CPU_MASK_ALL, | 627 | .cpumask = cpu_all_mask, |
628 | }; | 628 | }; |
629 | 629 | ||
630 | static void __init realview_clockevents_init(unsigned int timer_irq) | 630 | static void __init realview_clockevents_init(unsigned int timer_irq) |
diff --git a/arch/arm/mach-realview/core.h b/arch/arm/mach-realview/core.h index 63be2abdc19c..44269b162d49 100644 --- a/arch/arm/mach-realview/core.h +++ b/arch/arm/mach-realview/core.h | |||
@@ -31,7 +31,7 @@ | |||
31 | static struct amba_device name##_device = { \ | 31 | static struct amba_device name##_device = { \ |
32 | .dev = { \ | 32 | .dev = { \ |
33 | .coherent_dma_mask = ~0, \ | 33 | .coherent_dma_mask = ~0, \ |
34 | .bus_id = busid, \ | 34 | .init_name = busid, \ |
35 | .platform_data = plat, \ | 35 | .platform_data = plat, \ |
36 | }, \ | 36 | }, \ |
37 | .res = { \ | 37 | .res = { \ |
diff --git a/arch/arm/mach-realview/localtimer.c b/arch/arm/mach-realview/localtimer.c index 9019ef2e5611..67d6d9cc68b2 100644 --- a/arch/arm/mach-realview/localtimer.c +++ b/arch/arm/mach-realview/localtimer.c | |||
@@ -154,7 +154,7 @@ void __cpuinit local_timer_setup(void) | |||
154 | clk->set_mode = local_timer_set_mode; | 154 | clk->set_mode = local_timer_set_mode; |
155 | clk->set_next_event = local_timer_set_next_event; | 155 | clk->set_next_event = local_timer_set_next_event; |
156 | clk->irq = IRQ_LOCALTIMER; | 156 | clk->irq = IRQ_LOCALTIMER; |
157 | clk->cpumask = cpumask_of_cpu(cpu); | 157 | clk->cpumask = cpumask_of(cpu); |
158 | clk->shift = 20; | 158 | clk->shift = 20; |
159 | clk->mult = div_sc(mpcore_timer_rate, NSEC_PER_SEC, clk->shift); | 159 | clk->mult = div_sc(mpcore_timer_rate, NSEC_PER_SEC, clk->shift); |
160 | clk->max_delta_ns = clockevent_delta2ns(0xffffffff, clk); | 160 | clk->max_delta_ns = clockevent_delta2ns(0xffffffff, clk); |
@@ -193,7 +193,7 @@ void __cpuinit local_timer_setup(void) | |||
193 | clk->rating = 200; | 193 | clk->rating = 200; |
194 | clk->set_mode = dummy_timer_set_mode; | 194 | clk->set_mode = dummy_timer_set_mode; |
195 | clk->broadcast = smp_timer_broadcast; | 195 | clk->broadcast = smp_timer_broadcast; |
196 | clk->cpumask = cpumask_of_cpu(cpu); | 196 | clk->cpumask = cpumask_of(cpu); |
197 | 197 | ||
198 | clockevents_register_device(clk); | 198 | clockevents_register_device(clk); |
199 | } | 199 | } |
diff --git a/arch/arm/mach-realview/platsmp.c b/arch/arm/mach-realview/platsmp.c index 8fce85f33033..ea3c75595fa9 100644 --- a/arch/arm/mach-realview/platsmp.c +++ b/arch/arm/mach-realview/platsmp.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/errno.h> | 12 | #include <linux/errno.h> |
13 | #include <linux/delay.h> | 13 | #include <linux/delay.h> |
14 | #include <linux/device.h> | 14 | #include <linux/device.h> |
15 | #include <linux/jiffies.h> | ||
15 | #include <linux/smp.h> | 16 | #include <linux/smp.h> |
16 | #include <linux/io.h> | 17 | #include <linux/io.h> |
17 | 18 | ||
diff --git a/arch/arm/mach-s3c2410/include/mach/gpio.h b/arch/arm/mach-s3c2410/include/mach/gpio.h index e0349af8a483..00476a573bbe 100644 --- a/arch/arm/mach-s3c2410/include/mach/gpio.h +++ b/arch/arm/mach-s3c2410/include/mach/gpio.h | |||
@@ -14,6 +14,7 @@ | |||
14 | #define gpio_get_value __gpio_get_value | 14 | #define gpio_get_value __gpio_get_value |
15 | #define gpio_set_value __gpio_set_value | 15 | #define gpio_set_value __gpio_set_value |
16 | #define gpio_cansleep __gpio_cansleep | 16 | #define gpio_cansleep __gpio_cansleep |
17 | #define gpio_to_irq __gpio_to_irq | ||
17 | 18 | ||
18 | /* some boards require extra gpio capacity to support external | 19 | /* some boards require extra gpio capacity to support external |
19 | * devices that need GPIO. | 20 | * devices that need GPIO. |
diff --git a/arch/arm/mach-s3c2410/include/mach/irqs.h b/arch/arm/mach-s3c2410/include/mach/irqs.h index 9565903d490b..49efce8cd4a7 100644 --- a/arch/arm/mach-s3c2410/include/mach/irqs.h +++ b/arch/arm/mach-s3c2410/include/mach/irqs.h | |||
@@ -12,10 +12,6 @@ | |||
12 | #ifndef __ASM_ARCH_IRQS_H | 12 | #ifndef __ASM_ARCH_IRQS_H |
13 | #define __ASM_ARCH_IRQS_H __FILE__ | 13 | #define __ASM_ARCH_IRQS_H __FILE__ |
14 | 14 | ||
15 | #ifndef __ASM_ARM_IRQ_H | ||
16 | #error "Do not include this directly, instead #include <asm/irq.h>" | ||
17 | #endif | ||
18 | |||
19 | /* we keep the first set of CPU IRQs out of the range of | 15 | /* we keep the first set of CPU IRQs out of the range of |
20 | * the ISA space, so that the PC104 has them to itself | 16 | * the ISA space, so that the PC104 has them to itself |
21 | * and we don't end up having to do horrible things to the | 17 | * and we don't end up having to do horrible things to the |
diff --git a/arch/arm/mach-s3c2410/include/mach/spi.h b/arch/arm/mach-s3c2410/include/mach/spi.h index 774f3adfe8ad..1d300fb112b1 100644 --- a/arch/arm/mach-s3c2410/include/mach/spi.h +++ b/arch/arm/mach-s3c2410/include/mach/spi.h | |||
@@ -14,7 +14,7 @@ | |||
14 | #define __ASM_ARCH_SPI_H __FILE__ | 14 | #define __ASM_ARCH_SPI_H __FILE__ |
15 | 15 | ||
16 | struct s3c2410_spi_info { | 16 | struct s3c2410_spi_info { |
17 | unsigned long pin_cs; /* simple gpio cs */ | 17 | int pin_cs; /* simple gpio cs */ |
18 | unsigned int num_cs; /* total chipselects */ | 18 | unsigned int num_cs; /* total chipselects */ |
19 | int bus_num; /* bus number to use. */ | 19 | int bus_num; /* bus number to use. */ |
20 | 20 | ||
diff --git a/arch/arm/mach-s3c2440/mach-at2440evb.c b/arch/arm/mach-s3c2440/mach-at2440evb.c index 0a6d0a5d961b..315c42e31278 100644 --- a/arch/arm/mach-s3c2440/mach-at2440evb.c +++ b/arch/arm/mach-s3c2440/mach-at2440evb.c | |||
@@ -47,7 +47,7 @@ | |||
47 | #include <plat/clock.h> | 47 | #include <plat/clock.h> |
48 | #include <plat/devs.h> | 48 | #include <plat/devs.h> |
49 | #include <plat/cpu.h> | 49 | #include <plat/cpu.h> |
50 | #include <asm/plat-s3c24xx/mci.h> | 50 | #include <plat/mci.h> |
51 | 51 | ||
52 | static struct map_desc at2440evb_iodesc[] __initdata = { | 52 | static struct map_desc at2440evb_iodesc[] __initdata = { |
53 | /* Nothing here */ | 53 | /* Nothing here */ |
diff --git a/arch/arm/mach-s3c6400/include/mach/irqs.h b/arch/arm/mach-s3c6400/include/mach/irqs.h index b38c47cffc28..4c97f9a4370b 100644 --- a/arch/arm/mach-s3c6400/include/mach/irqs.h +++ b/arch/arm/mach-s3c6400/include/mach/irqs.h | |||
@@ -11,10 +11,6 @@ | |||
11 | #ifndef __ASM_ARCH_IRQS_H | 11 | #ifndef __ASM_ARCH_IRQS_H |
12 | #define __ASM_ARCH_IRQS_H __FILE__ | 12 | #define __ASM_ARCH_IRQS_H __FILE__ |
13 | 13 | ||
14 | #ifndef __ASM_ARM_IRQ_H | ||
15 | #error "Do not include this directly, instead #include <asm/irq.h>" | ||
16 | #endif | ||
17 | |||
18 | #include <plat/irqs.h> | 14 | #include <plat/irqs.h> |
19 | 15 | ||
20 | #endif /* __ASM_ARCH_IRQ_H */ | 16 | #endif /* __ASM_ARCH_IRQ_H */ |
diff --git a/arch/arm/mach-sa1100/time.c b/arch/arm/mach-sa1100/time.c index 8c5e727f3b75..711c0295c66f 100644 --- a/arch/arm/mach-sa1100/time.c +++ b/arch/arm/mach-sa1100/time.c | |||
@@ -73,7 +73,6 @@ static struct clock_event_device ckevt_sa1100_osmr0 = { | |||
73 | .features = CLOCK_EVT_FEAT_ONESHOT, | 73 | .features = CLOCK_EVT_FEAT_ONESHOT, |
74 | .shift = 32, | 74 | .shift = 32, |
75 | .rating = 200, | 75 | .rating = 200, |
76 | .cpumask = CPU_MASK_CPU0, | ||
77 | .set_next_event = sa1100_osmr0_set_next_event, | 76 | .set_next_event = sa1100_osmr0_set_next_event, |
78 | .set_mode = sa1100_osmr0_set_mode, | 77 | .set_mode = sa1100_osmr0_set_mode, |
79 | }; | 78 | }; |
@@ -110,6 +109,7 @@ static void __init sa1100_timer_init(void) | |||
110 | clockevent_delta2ns(0x7fffffff, &ckevt_sa1100_osmr0); | 109 | clockevent_delta2ns(0x7fffffff, &ckevt_sa1100_osmr0); |
111 | ckevt_sa1100_osmr0.min_delta_ns = | 110 | ckevt_sa1100_osmr0.min_delta_ns = |
112 | clockevent_delta2ns(MIN_OSCR_DELTA * 2, &ckevt_sa1100_osmr0) + 1; | 111 | clockevent_delta2ns(MIN_OSCR_DELTA * 2, &ckevt_sa1100_osmr0) + 1; |
112 | ckevt_sa1100_osmr0.cpumask = cpumask_of(0); | ||
113 | 113 | ||
114 | cksrc_sa1100_oscr.mult = | 114 | cksrc_sa1100_oscr.mult = |
115 | clocksource_hz2mult(CLOCK_TICK_RATE, cksrc_sa1100_oscr.shift); | 115 | clocksource_hz2mult(CLOCK_TICK_RATE, cksrc_sa1100_oscr.shift); |
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index df25aa138509..1c43494f5c42 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c | |||
@@ -1005,7 +1005,7 @@ static void __init versatile_timer_init(void) | |||
1005 | timer0_clockevent.min_delta_ns = | 1005 | timer0_clockevent.min_delta_ns = |
1006 | clockevent_delta2ns(0xf, &timer0_clockevent); | 1006 | clockevent_delta2ns(0xf, &timer0_clockevent); |
1007 | 1007 | ||
1008 | timer0_clockevent.cpumask = cpumask_of_cpu(0); | 1008 | timer0_clockevent.cpumask = cpumask_of(0); |
1009 | clockevents_register_device(&timer0_clockevent); | 1009 | clockevents_register_device(&timer0_clockevent); |
1010 | } | 1010 | } |
1011 | 1011 | ||
diff --git a/arch/arm/mach-versatile/core.h b/arch/arm/mach-versatile/core.h index afcaa858eb1f..9d39886a8351 100644 --- a/arch/arm/mach-versatile/core.h +++ b/arch/arm/mach-versatile/core.h | |||
@@ -34,7 +34,7 @@ extern unsigned int mmc_status(struct device *dev); | |||
34 | static struct amba_device name##_device = { \ | 34 | static struct amba_device name##_device = { \ |
35 | .dev = { \ | 35 | .dev = { \ |
36 | .coherent_dma_mask = ~0, \ | 36 | .coherent_dma_mask = ~0, \ |
37 | .bus_id = busid, \ | 37 | .init_name = busid, \ |
38 | .platform_data = plat, \ | 38 | .platform_data = plat, \ |
39 | }, \ | 39 | }, \ |
40 | .res = { \ | 40 | .res = { \ |
diff --git a/arch/arm/oprofile/op_model_mpcore.c b/arch/arm/oprofile/op_model_mpcore.c index 4de366e8b4c5..6d6bd5899240 100644 --- a/arch/arm/oprofile/op_model_mpcore.c +++ b/arch/arm/oprofile/op_model_mpcore.c | |||
@@ -260,10 +260,10 @@ static void em_stop(void) | |||
260 | static void em_route_irq(int irq, unsigned int cpu) | 260 | static void em_route_irq(int irq, unsigned int cpu) |
261 | { | 261 | { |
262 | struct irq_desc *desc = irq_desc + irq; | 262 | struct irq_desc *desc = irq_desc + irq; |
263 | cpumask_t mask = cpumask_of_cpu(cpu); | 263 | const struct cpumask *mask = cpumask_of(cpu); |
264 | 264 | ||
265 | spin_lock_irq(&desc->lock); | 265 | spin_lock_irq(&desc->lock); |
266 | desc->affinity = mask; | 266 | desc->affinity = *mask; |
267 | desc->chip->set_affinity(irq, mask); | 267 | desc->chip->set_affinity(irq, mask); |
268 | spin_unlock_irq(&desc->lock); | 268 | spin_unlock_irq(&desc->lock); |
269 | } | 269 | } |
diff --git a/arch/arm/plat-mxc/include/mach/usb.h b/arch/arm/plat-mxc/include/mach/usb.h new file mode 100644 index 000000000000..2dacb3086f1c --- /dev/null +++ b/arch/arm/plat-mxc/include/mach/usb.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2008 Darius Augulis <augulis.darius@gmail.com> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | ||
14 | |||
15 | #ifndef __ASM_ARCH_MXC_USB | ||
16 | #define __ASM_ARCH_MXC_USB | ||
17 | |||
18 | struct imxusb_platform_data { | ||
19 | int (*init)(struct device *); | ||
20 | int (*exit)(struct device *); | ||
21 | }; | ||
22 | |||
23 | #endif /* __ASM_ARCH_MXC_USB */ | ||
diff --git a/arch/arm/plat-mxc/time.c b/arch/arm/plat-mxc/time.c index fd28f5194f71..758a1293bcfa 100644 --- a/arch/arm/plat-mxc/time.c +++ b/arch/arm/plat-mxc/time.c | |||
@@ -190,7 +190,7 @@ static int __init mxc_clockevent_init(void) | |||
190 | clockevent_mxc.min_delta_ns = | 190 | clockevent_mxc.min_delta_ns = |
191 | clockevent_delta2ns(0xff, &clockevent_mxc); | 191 | clockevent_delta2ns(0xff, &clockevent_mxc); |
192 | 192 | ||
193 | clockevent_mxc.cpumask = cpumask_of_cpu(0); | 193 | clockevent_mxc.cpumask = cpumask_of(0); |
194 | 194 | ||
195 | clockevents_register_device(&clockevent_mxc); | 195 | clockevents_register_device(&clockevent_mxc); |
196 | 196 | ||
diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index 89a6ab0b7db8..467531edefd3 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
27 | #include <linux/platform_device.h> | 27 | #include <linux/platform_device.h> |
28 | #include <linux/i2c.h> | 28 | #include <linux/i2c.h> |
29 | #include <mach/irqs.h> | ||
29 | #include <mach/mux.h> | 30 | #include <mach/mux.h> |
30 | 31 | ||
31 | #define OMAP_I2C_SIZE 0x3f | 32 | #define OMAP_I2C_SIZE 0x3f |
diff --git a/arch/arm/plat-omap/include/mach/memory.h b/arch/arm/plat-omap/include/mach/memory.h index 211c9f6619e9..d6b5ca6c7da2 100644 --- a/arch/arm/plat-omap/include/mach/memory.h +++ b/arch/arm/plat-omap/include/mach/memory.h | |||
@@ -59,7 +59,7 @@ | |||
59 | 59 | ||
60 | #define virt_to_lbus(x) ((x) - PAGE_OFFSET + OMAP1510_LB_OFFSET) | 60 | #define virt_to_lbus(x) ((x) - PAGE_OFFSET + OMAP1510_LB_OFFSET) |
61 | #define lbus_to_virt(x) ((x) - OMAP1510_LB_OFFSET + PAGE_OFFSET) | 61 | #define lbus_to_virt(x) ((x) - OMAP1510_LB_OFFSET + PAGE_OFFSET) |
62 | #define is_lbus_device(dev) (cpu_is_omap15xx() && dev && (strncmp(dev->bus_id, "ohci", 4) == 0)) | 62 | #define is_lbus_device(dev) (cpu_is_omap15xx() && dev && (strncmp(dev_name(dev), "ohci", 4) == 0)) |
63 | 63 | ||
64 | #define __arch_page_to_dma(dev, page) ({is_lbus_device(dev) ? \ | 64 | #define __arch_page_to_dma(dev, page) ({is_lbus_device(dev) ? \ |
65 | (dma_addr_t)virt_to_lbus(page_address(page)) : \ | 65 | (dma_addr_t)virt_to_lbus(page_address(page)) : \ |
diff --git a/arch/arm/plat-omap/usb.c b/arch/arm/plat-omap/usb.c index 67ca1e216df7..add0485703b5 100644 --- a/arch/arm/plat-omap/usb.c +++ b/arch/arm/plat-omap/usb.c | |||
@@ -77,38 +77,6 @@ | |||
77 | 77 | ||
78 | /*-------------------------------------------------------------------------*/ | 78 | /*-------------------------------------------------------------------------*/ |
79 | 79 | ||
80 | #if defined(CONFIG_ARCH_OMAP_OTG) || defined(CONFIG_USB_MUSB_OTG) | ||
81 | |||
82 | static struct otg_transceiver *xceiv; | ||
83 | |||
84 | /** | ||
85 | * otg_get_transceiver - find the (single) OTG transceiver driver | ||
86 | * | ||
87 | * Returns the transceiver driver, after getting a refcount to it; or | ||
88 | * null if there is no such transceiver. The caller is responsible for | ||
89 | * releasing that count. | ||
90 | */ | ||
91 | struct otg_transceiver *otg_get_transceiver(void) | ||
92 | { | ||
93 | if (xceiv) | ||
94 | get_device(xceiv->dev); | ||
95 | return xceiv; | ||
96 | } | ||
97 | EXPORT_SYMBOL(otg_get_transceiver); | ||
98 | |||
99 | int otg_set_transceiver(struct otg_transceiver *x) | ||
100 | { | ||
101 | if (xceiv && x) | ||
102 | return -EBUSY; | ||
103 | xceiv = x; | ||
104 | return 0; | ||
105 | } | ||
106 | EXPORT_SYMBOL(otg_set_transceiver); | ||
107 | |||
108 | #endif | ||
109 | |||
110 | /*-------------------------------------------------------------------------*/ | ||
111 | |||
112 | #if defined(CONFIG_ARCH_OMAP_OTG) || defined(CONFIG_ARCH_OMAP15XX) | 80 | #if defined(CONFIG_ARCH_OMAP_OTG) || defined(CONFIG_ARCH_OMAP15XX) |
113 | 81 | ||
114 | static void omap2_usb_devconf_clear(u8 port, u32 mask) | 82 | static void omap2_usb_devconf_clear(u8 port, u32 mask) |
diff --git a/arch/arm/plat-orion/time.c b/arch/arm/plat-orion/time.c index 544d6b327f3a..6fa2923e6dca 100644 --- a/arch/arm/plat-orion/time.c +++ b/arch/arm/plat-orion/time.c | |||
@@ -149,7 +149,6 @@ static struct clock_event_device orion_clkevt = { | |||
149 | .features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC, | 149 | .features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC, |
150 | .shift = 32, | 150 | .shift = 32, |
151 | .rating = 300, | 151 | .rating = 300, |
152 | .cpumask = CPU_MASK_CPU0, | ||
153 | .set_next_event = orion_clkevt_next_event, | 152 | .set_next_event = orion_clkevt_next_event, |
154 | .set_mode = orion_clkevt_mode, | 153 | .set_mode = orion_clkevt_mode, |
155 | }; | 154 | }; |
@@ -199,5 +198,6 @@ void __init orion_time_init(unsigned int irq, unsigned int tclk) | |||
199 | orion_clkevt.mult = div_sc(tclk, NSEC_PER_SEC, orion_clkevt.shift); | 198 | orion_clkevt.mult = div_sc(tclk, NSEC_PER_SEC, orion_clkevt.shift); |
200 | orion_clkevt.max_delta_ns = clockevent_delta2ns(0xfffffffe, &orion_clkevt); | 199 | orion_clkevt.max_delta_ns = clockevent_delta2ns(0xfffffffe, &orion_clkevt); |
201 | orion_clkevt.min_delta_ns = clockevent_delta2ns(1, &orion_clkevt); | 200 | orion_clkevt.min_delta_ns = clockevent_delta2ns(1, &orion_clkevt); |
201 | orion_clkevt.cpumask = cpumask_of(0); | ||
202 | clockevents_register_device(&orion_clkevt); | 202 | clockevents_register_device(&orion_clkevt); |
203 | } | 203 | } |
diff --git a/arch/arm/plat-s3c/dev-fb.c b/arch/arm/plat-s3c/dev-fb.c index 0454b8ec02e2..a90198fc4b0f 100644 --- a/arch/arm/plat-s3c/dev-fb.c +++ b/arch/arm/plat-s3c/dev-fb.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/fb.h> | 17 | #include <linux/fb.h> |
18 | 18 | ||
19 | #include <mach/irqs.h> | ||
19 | #include <mach/map.h> | 20 | #include <mach/map.h> |
20 | #include <mach/regs-fb.h> | 21 | #include <mach/regs-fb.h> |
21 | 22 | ||
diff --git a/arch/arm/plat-s3c/dev-i2c0.c b/arch/arm/plat-s3c/dev-i2c0.c index 2c0128c77c6e..fe327074037e 100644 --- a/arch/arm/plat-s3c/dev-i2c0.c +++ b/arch/arm/plat-s3c/dev-i2c0.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/string.h> | 15 | #include <linux/string.h> |
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | 17 | ||
18 | #include <mach/irqs.h> | ||
18 | #include <mach/map.h> | 19 | #include <mach/map.h> |
19 | 20 | ||
20 | #include <plat/regs-iic.h> | 21 | #include <plat/regs-iic.h> |
diff --git a/arch/arm/plat-s3c/dev-i2c1.c b/arch/arm/plat-s3c/dev-i2c1.c index 9658fb0aec95..2387fbf57af6 100644 --- a/arch/arm/plat-s3c/dev-i2c1.c +++ b/arch/arm/plat-s3c/dev-i2c1.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/string.h> | 15 | #include <linux/string.h> |
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | 17 | ||
18 | #include <mach/irqs.h> | ||
18 | #include <mach/map.h> | 19 | #include <mach/map.h> |
19 | 20 | ||
20 | #include <plat/regs-iic.h> | 21 | #include <plat/regs-iic.h> |
diff --git a/arch/arm/plat-s3c24xx/gpiolib.c b/arch/arm/plat-s3c24xx/gpiolib.c index f95c6c9d9f1a..94a341aaa4e4 100644 --- a/arch/arm/plat-s3c24xx/gpiolib.c +++ b/arch/arm/plat-s3c24xx/gpiolib.c | |||
@@ -59,6 +59,22 @@ static int s3c24xx_gpiolib_banka_output(struct gpio_chip *chip, | |||
59 | return 0; | 59 | return 0; |
60 | } | 60 | } |
61 | 61 | ||
62 | static int s3c24xx_gpiolib_bankf_toirq(struct gpio_chip *chip, unsigned offset) | ||
63 | { | ||
64 | if (offset < 4) | ||
65 | return IRQ_EINT0 + offset; | ||
66 | |||
67 | if (offset < 8) | ||
68 | return IRQ_EINT4 + offset - 4; | ||
69 | |||
70 | return -EINVAL; | ||
71 | } | ||
72 | |||
73 | static int s3c24xx_gpiolib_bankg_toirq(struct gpio_chip *chip, unsigned offset) | ||
74 | { | ||
75 | return IRQ_EINT8 + offset; | ||
76 | } | ||
77 | |||
62 | struct s3c_gpio_chip s3c24xx_gpios[] = { | 78 | struct s3c_gpio_chip s3c24xx_gpios[] = { |
63 | [0] = { | 79 | [0] = { |
64 | .base = S3C24XX_GPIO_BASE(S3C2410_GPA0), | 80 | .base = S3C24XX_GPIO_BASE(S3C2410_GPA0), |
@@ -114,6 +130,7 @@ struct s3c_gpio_chip s3c24xx_gpios[] = { | |||
114 | .owner = THIS_MODULE, | 130 | .owner = THIS_MODULE, |
115 | .label = "GPIOF", | 131 | .label = "GPIOF", |
116 | .ngpio = 8, | 132 | .ngpio = 8, |
133 | .to_irq = s3c24xx_gpiolib_bankf_toirq, | ||
117 | }, | 134 | }, |
118 | }, | 135 | }, |
119 | [6] = { | 136 | [6] = { |
@@ -123,6 +140,7 @@ struct s3c_gpio_chip s3c24xx_gpios[] = { | |||
123 | .owner = THIS_MODULE, | 140 | .owner = THIS_MODULE, |
124 | .label = "GPIOG", | 141 | .label = "GPIOG", |
125 | .ngpio = 10, | 142 | .ngpio = 10, |
143 | .to_irq = s3c24xx_gpiolib_bankg_toirq, | ||
126 | }, | 144 | }, |
127 | }, | 145 | }, |
128 | }; | 146 | }; |
diff --git a/arch/arm/plat-s3c24xx/pwm.c b/arch/arm/plat-s3c24xx/pwm.c index ec56b88866c4..0120b760315b 100644 --- a/arch/arm/plat-s3c24xx/pwm.c +++ b/arch/arm/plat-s3c24xx/pwm.c | |||
@@ -19,6 +19,8 @@ | |||
19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
20 | #include <linux/pwm.h> | 20 | #include <linux/pwm.h> |
21 | 21 | ||
22 | #include <mach/irqs.h> | ||
23 | |||
22 | #include <plat/devs.h> | 24 | #include <plat/devs.h> |
23 | #include <plat/regs-timer.h> | 25 | #include <plat/regs-timer.h> |
24 | 26 | ||
diff --git a/arch/arm/plat-s3c64xx/include/plat/irqs.h b/arch/arm/plat-s3c64xx/include/plat/irqs.h index 02e8dd4c97d5..2846f550b727 100644 --- a/arch/arm/plat-s3c64xx/include/plat/irqs.h +++ b/arch/arm/plat-s3c64xx/include/plat/irqs.h | |||
@@ -191,7 +191,7 @@ | |||
191 | #define IRQ_EINT_GROUP8_BASE (IRQ_EINT_GROUP7_BASE + IRQ_EINT_GROUP7_NR) | 191 | #define IRQ_EINT_GROUP8_BASE (IRQ_EINT_GROUP7_BASE + IRQ_EINT_GROUP7_NR) |
192 | #define IRQ_EINT_GROUP9_BASE (IRQ_EINT_GROUP8_BASE + IRQ_EINT_GROUP8_NR) | 192 | #define IRQ_EINT_GROUP9_BASE (IRQ_EINT_GROUP8_BASE + IRQ_EINT_GROUP8_NR) |
193 | 193 | ||
194 | #define IRQ_EINT_GROUP(group, no) (IRQ_EINT_GROUP##group##__BASE + (x)) | 194 | #define IRQ_EINT_GROUP(group, no) (IRQ_EINT_GROUP##group##_BASE + (no)) |
195 | 195 | ||
196 | /* Set the default NR_IRQS */ | 196 | /* Set the default NR_IRQS */ |
197 | 197 | ||