diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/arm/include/asm/atomic.h | 3 | ||||
-rw-r--r-- | arch/arm/include/asm/byteorder.h | 33 | ||||
-rw-r--r-- | arch/arm/include/asm/swab.h | 50 | ||||
-rw-r--r-- | arch/arm/kernel/ecard.c | 2 | ||||
-rw-r--r-- | arch/arm/kernel/kprobes.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-aaec2000/core.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/core.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-integrator/core.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-lh7a40x/clcd.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-netx/fb.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/pxa930_rotary.h | 20 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/pxa930_trkball.h | 10 | ||||
-rw-r--r-- | arch/arm/mach-realview/core.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c2410/include/mach/spi.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-versatile/core.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/mach/memory.h | 2 |
19 files changed, 104 insertions, 55 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index d6ebe39934b..dbfdf87f993 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/include/asm/Kbuild b/arch/arm/include/asm/Kbuild index 73237bd130a..43b0b2ba392 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 325f881ccb5..ee99723b3a6 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 4fbfb22f65a..c02b6fc28e1 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/swab.h b/arch/arm/include/asm/swab.h new file mode 100644 index 00000000000..27a689be085 --- /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/ecard.c b/arch/arm/kernel/ecard.c index 60c079d8535..eed2f795e1b 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/kprobes.c b/arch/arm/kernel/kprobes.c index 3f9abe0e9af..f692efddd44 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/mach-aaec2000/core.c b/arch/arm/mach-aaec2000/core.c index 50e13965dfe..b5c5fc6ba3a 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-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c index 4781f323703..6d9152de607 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-integrator/core.c b/arch/arm/mach-integrator/core.c index c89c949b4d4..6f887291307 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 427c2d8dc12..4ac04055c2e 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-lh7a40x/clcd.c b/arch/arm/mach-lh7a40x/clcd.c index a2a543258fc..c472b9e8b37 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-netx/fb.c b/arch/arm/mach-netx/fb.c index 8f1f992f002..ea8fa8898fe 100644 --- a/arch/arm/mach-netx/fb.c +++ b/arch/arm/mach-netx/fb.c | |||
@@ -91,7 +91,7 @@ void clk_put(struct clk *clk) | |||
91 | 91 | ||
92 | static struct amba_device fb_device = { | 92 | static struct amba_device fb_device = { |
93 | .dev = { | 93 | .dev = { |
94 | .bus_id = "fb", | 94 | .init_name = "fb", |
95 | .coherent_dma_mask = ~0, | 95 | .coherent_dma_mask = ~0, |
96 | }, | 96 | }, |
97 | .res = { | 97 | .res = { |
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 00000000000..053587caffd --- /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 00000000000..5e0789bc472 --- /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-realview/core.h b/arch/arm/mach-realview/core.h index 63be2abdc19..44269b162d4 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-s3c2410/include/mach/spi.h b/arch/arm/mach-s3c2410/include/mach/spi.h index 774f3adfe8a..1d300fb112b 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-versatile/core.h b/arch/arm/mach-versatile/core.h index afcaa858eb1..9d39886a835 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/plat-omap/include/mach/memory.h b/arch/arm/plat-omap/include/mach/memory.h index 211c9f6619e..d6b5ca6c7da 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)) : \ |