diff options
Diffstat (limited to 'arch/mips/jazz')
-rw-r--r-- | arch/mips/jazz/irq.c | 10 | ||||
-rw-r--r-- | arch/mips/jazz/jazzdma.c | 1 | ||||
-rw-r--r-- | arch/mips/jazz/setup.c | 12 |
3 files changed, 9 insertions, 14 deletions
diff --git a/arch/mips/jazz/irq.c b/arch/mips/jazz/irq.c index 7bd32d04c2cc..ee18028efe92 100644 --- a/arch/mips/jazz/irq.c +++ b/arch/mips/jazz/irq.c | |||
@@ -20,17 +20,17 @@ | |||
20 | #include <asm/jazz.h> | 20 | #include <asm/jazz.h> |
21 | #include <asm/pgtable.h> | 21 | #include <asm/pgtable.h> |
22 | 22 | ||
23 | static DEFINE_SPINLOCK(r4030_lock); | 23 | static DEFINE_RAW_SPINLOCK(r4030_lock); |
24 | 24 | ||
25 | static void enable_r4030_irq(unsigned int irq) | 25 | static void enable_r4030_irq(unsigned int irq) |
26 | { | 26 | { |
27 | unsigned int mask = 1 << (irq - JAZZ_IRQ_START); | 27 | unsigned int mask = 1 << (irq - JAZZ_IRQ_START); |
28 | unsigned long flags; | 28 | unsigned long flags; |
29 | 29 | ||
30 | spin_lock_irqsave(&r4030_lock, flags); | 30 | raw_spin_lock_irqsave(&r4030_lock, flags); |
31 | mask |= r4030_read_reg16(JAZZ_IO_IRQ_ENABLE); | 31 | mask |= r4030_read_reg16(JAZZ_IO_IRQ_ENABLE); |
32 | r4030_write_reg16(JAZZ_IO_IRQ_ENABLE, mask); | 32 | r4030_write_reg16(JAZZ_IO_IRQ_ENABLE, mask); |
33 | spin_unlock_irqrestore(&r4030_lock, flags); | 33 | raw_spin_unlock_irqrestore(&r4030_lock, flags); |
34 | } | 34 | } |
35 | 35 | ||
36 | void disable_r4030_irq(unsigned int irq) | 36 | void disable_r4030_irq(unsigned int irq) |
@@ -38,10 +38,10 @@ void disable_r4030_irq(unsigned int irq) | |||
38 | unsigned int mask = ~(1 << (irq - JAZZ_IRQ_START)); | 38 | unsigned int mask = ~(1 << (irq - JAZZ_IRQ_START)); |
39 | unsigned long flags; | 39 | unsigned long flags; |
40 | 40 | ||
41 | spin_lock_irqsave(&r4030_lock, flags); | 41 | raw_spin_lock_irqsave(&r4030_lock, flags); |
42 | mask &= r4030_read_reg16(JAZZ_IO_IRQ_ENABLE); | 42 | mask &= r4030_read_reg16(JAZZ_IO_IRQ_ENABLE); |
43 | r4030_write_reg16(JAZZ_IO_IRQ_ENABLE, mask); | 43 | r4030_write_reg16(JAZZ_IO_IRQ_ENABLE, mask); |
44 | spin_unlock_irqrestore(&r4030_lock, flags); | 44 | raw_spin_unlock_irqrestore(&r4030_lock, flags); |
45 | } | 45 | } |
46 | 46 | ||
47 | static struct irq_chip r4030_irq_type = { | 47 | static struct irq_chip r4030_irq_type = { |
diff --git a/arch/mips/jazz/jazzdma.c b/arch/mips/jazz/jazzdma.c index 0d64d0f46418..9ce9f64cb76f 100644 --- a/arch/mips/jazz/jazzdma.c +++ b/arch/mips/jazz/jazzdma.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/mm.h> | 14 | #include <linux/mm.h> |
15 | #include <linux/bootmem.h> | 15 | #include <linux/bootmem.h> |
16 | #include <linux/spinlock.h> | 16 | #include <linux/spinlock.h> |
17 | #include <linux/gfp.h> | ||
17 | #include <asm/mipsregs.h> | 18 | #include <asm/mipsregs.h> |
18 | #include <asm/jazz.h> | 19 | #include <asm/jazz.h> |
19 | #include <asm/io.h> | 20 | #include <asm/io.h> |
diff --git a/arch/mips/jazz/setup.c b/arch/mips/jazz/setup.c index 7043f6b9ff3c..0d0f054a02f4 100644 --- a/arch/mips/jazz/setup.c +++ b/arch/mips/jazz/setup.c | |||
@@ -76,15 +76,9 @@ void __init plat_mem_setup(void) | |||
76 | 76 | ||
77 | #ifdef CONFIG_VT | 77 | #ifdef CONFIG_VT |
78 | screen_info = (struct screen_info) { | 78 | screen_info = (struct screen_info) { |
79 | 0, 0, /* orig-x, orig-y */ | 79 | .orig_video_cols = 160, |
80 | 0, /* unused */ | 80 | .orig_video_lines = 64, |
81 | 0, /* orig_video_page */ | 81 | .orig_video_points = 16, |
82 | 0, /* orig_video_mode */ | ||
83 | 160, /* orig_video_cols */ | ||
84 | 0, 0, 0, /* unused, ega_bx, unused */ | ||
85 | 64, /* orig_video_lines */ | ||
86 | 0, /* orig_video_isVGA */ | ||
87 | 16 /* orig_video_points */ | ||
88 | }; | 82 | }; |
89 | #endif | 83 | #endif |
90 | 84 | ||