diff options
Diffstat (limited to 'arch/sh/boards')
| -rw-r--r-- | arch/sh/boards/adx/irq_maskreg.c | 14 | ||||
| -rw-r--r-- | arch/sh/boards/bigsur/io.c | 8 | ||||
| -rw-r--r-- | arch/sh/boards/bigsur/irq.c | 28 | ||||
| -rw-r--r-- | arch/sh/boards/cqreek/irq.c | 14 | ||||
| -rw-r--r-- | arch/sh/boards/harp/irq.c | 14 | ||||
| -rw-r--r-- | arch/sh/boards/overdrive/irq.c | 14 | ||||
| -rw-r--r-- | arch/sh/boards/renesas/hs7751rvoip/irq.c | 14 | ||||
| -rw-r--r-- | arch/sh/boards/renesas/rts7751r2d/irq.c | 14 | ||||
| -rw-r--r-- | arch/sh/boards/renesas/systemh/irq.c | 14 | ||||
| -rw-r--r-- | arch/sh/boards/superh/microdev/irq.c | 14 |
10 files changed, 72 insertions, 76 deletions
diff --git a/arch/sh/boards/adx/irq_maskreg.c b/arch/sh/boards/adx/irq_maskreg.c index ca91bb0f1f5c..c0973f8d57ba 100644 --- a/arch/sh/boards/adx/irq_maskreg.c +++ b/arch/sh/boards/adx/irq_maskreg.c | |||
| @@ -37,13 +37,13 @@ static void end_maskreg_irq(unsigned int irq); | |||
| 37 | 37 | ||
| 38 | /* hw_interrupt_type */ | 38 | /* hw_interrupt_type */ |
| 39 | static struct hw_interrupt_type maskreg_irq_type = { | 39 | static struct hw_interrupt_type maskreg_irq_type = { |
| 40 | " Mask Register", | 40 | .typename = " Mask Register", |
| 41 | startup_maskreg_irq, | 41 | .startup = startup_maskreg_irq, |
| 42 | shutdown_maskreg_irq, | 42 | .shutdown = shutdown_maskreg_irq, |
| 43 | enable_maskreg_irq, | 43 | .enable = enable_maskreg_irq, |
| 44 | disable_maskreg_irq, | 44 | .disable = disable_maskreg_irq, |
| 45 | mask_and_ack_maskreg, | 45 | .ack = mask_and_ack_maskreg, |
| 46 | end_maskreg_irq | 46 | .end = end_maskreg_irq |
| 47 | }; | 47 | }; |
| 48 | 48 | ||
| 49 | /* actual implementatin */ | 49 | /* actual implementatin */ |
diff --git a/arch/sh/boards/bigsur/io.c b/arch/sh/boards/bigsur/io.c index 697144de7419..a9fde781b21a 100644 --- a/arch/sh/boards/bigsur/io.c +++ b/arch/sh/boards/bigsur/io.c | |||
| @@ -37,10 +37,6 @@ static u8 bigsur_iomap_lo_shift[BIGSUR_IOMAP_LO_NMAP]; | |||
| 37 | static u32 bigsur_iomap_hi[BIGSUR_IOMAP_HI_NMAP]; | 37 | static u32 bigsur_iomap_hi[BIGSUR_IOMAP_HI_NMAP]; |
| 38 | static u8 bigsur_iomap_hi_shift[BIGSUR_IOMAP_HI_NMAP]; | 38 | static u8 bigsur_iomap_hi_shift[BIGSUR_IOMAP_HI_NMAP]; |
| 39 | 39 | ||
| 40 | #ifndef MAX | ||
| 41 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ||
| 42 | #endif | ||
| 43 | |||
| 44 | void bigsur_port_map(u32 baseport, u32 nports, u32 addr, u8 shift) | 40 | void bigsur_port_map(u32 baseport, u32 nports, u32 addr, u8 shift) |
| 45 | { | 41 | { |
| 46 | u32 port, endport = baseport + nports; | 42 | u32 port, endport = baseport + nports; |
| @@ -57,7 +53,7 @@ void bigsur_port_map(u32 baseport, u32 nports, u32 addr, u8 shift) | |||
| 57 | addr += (1<<(BIGSUR_IOMAP_LO_SHIFT)); | 53 | addr += (1<<(BIGSUR_IOMAP_LO_SHIFT)); |
| 58 | } | 54 | } |
| 59 | 55 | ||
| 60 | for (port = MAX(baseport, BIGSUR_IOMAP_LO_THRESH) ; | 56 | for (port = max_t(u32, baseport, BIGSUR_IOMAP_LO_THRESH); |
| 61 | port < endport && port < BIGSUR_IOMAP_HI_THRESH ; | 57 | port < endport && port < BIGSUR_IOMAP_HI_THRESH ; |
| 62 | port += (1<<BIGSUR_IOMAP_HI_SHIFT)) { | 58 | port += (1<<BIGSUR_IOMAP_HI_SHIFT)) { |
| 63 | pr_debug(" maphi[0x%x] = 0x%08x\n", port, addr); | 59 | pr_debug(" maphi[0x%x] = 0x%08x\n", port, addr); |
| @@ -80,7 +76,7 @@ void bigsur_port_unmap(u32 baseport, u32 nports) | |||
| 80 | bigsur_iomap_lo[port>>BIGSUR_IOMAP_LO_SHIFT] = 0; | 76 | bigsur_iomap_lo[port>>BIGSUR_IOMAP_LO_SHIFT] = 0; |
| 81 | } | 77 | } |
| 82 | 78 | ||
| 83 | for (port = MAX(baseport, BIGSUR_IOMAP_LO_THRESH) ; | 79 | for (port = max_t(u32, baseport, BIGSUR_IOMAP_LO_THRESH); |
| 84 | port < endport && port < BIGSUR_IOMAP_HI_THRESH ; | 80 | port < endport && port < BIGSUR_IOMAP_HI_THRESH ; |
| 85 | port += (1<<BIGSUR_IOMAP_HI_SHIFT)) { | 81 | port += (1<<BIGSUR_IOMAP_HI_SHIFT)) { |
| 86 | bigsur_iomap_hi[port>>BIGSUR_IOMAP_HI_SHIFT] = 0; | 82 | bigsur_iomap_hi[port>>BIGSUR_IOMAP_HI_SHIFT] = 0; |
diff --git a/arch/sh/boards/bigsur/irq.c b/arch/sh/boards/bigsur/irq.c index c188fc32dc9a..6ddbcc77244d 100644 --- a/arch/sh/boards/bigsur/irq.c +++ b/arch/sh/boards/bigsur/irq.c | |||
| @@ -228,23 +228,23 @@ static void shutdown_bigsur_irq(unsigned int irq) | |||
| 228 | 228 | ||
| 229 | /* Define the IRQ structures for the L1 and L2 IRQ types */ | 229 | /* Define the IRQ structures for the L1 and L2 IRQ types */ |
| 230 | static struct hw_interrupt_type bigsur_l1irq_type = { | 230 | static struct hw_interrupt_type bigsur_l1irq_type = { |
| 231 | "BigSur-CPLD-Level1-IRQ", | 231 | .typename = "BigSur-CPLD-Level1-IRQ", |
| 232 | startup_bigsur_irq, | 232 | .startup = startup_bigsur_irq, |
| 233 | shutdown_bigsur_irq, | 233 | .shutdown = shutdown_bigsur_irq, |
| 234 | enable_bigsur_l1irq, | 234 | .enable = enable_bigsur_l1irq, |
| 235 | disable_bigsur_l1irq, | 235 | .disable = disable_bigsur_l1irq, |
| 236 | mask_and_ack_bigsur, | 236 | .ack = mask_and_ack_bigsur, |
| 237 | end_bigsur_irq | 237 | .end = end_bigsur_irq |
| 238 | }; | 238 | }; |
| 239 | 239 | ||
| 240 | static struct hw_interrupt_type bigsur_l2irq_type = { | 240 | static struct hw_interrupt_type bigsur_l2irq_type = { |
| 241 | "BigSur-CPLD-Level2-IRQ", | 241 | .typename = "BigSur-CPLD-Level2-IRQ", |
| 242 | startup_bigsur_irq, | 242 | .startup = startup_bigsur_irq, |
| 243 | shutdown_bigsur_irq, | 243 | .shutdown =shutdown_bigsur_irq, |
| 244 | enable_bigsur_l2irq, | 244 | .enable = enable_bigsur_l2irq, |
| 245 | disable_bigsur_l2irq, | 245 | .disable = disable_bigsur_l2irq, |
| 246 | mask_and_ack_bigsur, | 246 | .ack = mask_and_ack_bigsur, |
| 247 | end_bigsur_irq | 247 | .end = end_bigsur_irq |
| 248 | }; | 248 | }; |
| 249 | 249 | ||
| 250 | 250 | ||
diff --git a/arch/sh/boards/cqreek/irq.c b/arch/sh/boards/cqreek/irq.c index fa6cfe5a20a7..d1da0d844567 100644 --- a/arch/sh/boards/cqreek/irq.c +++ b/arch/sh/boards/cqreek/irq.c | |||
| @@ -83,13 +83,13 @@ static void shutdown_cqreek_irq(unsigned int irq) | |||
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | static struct hw_interrupt_type cqreek_irq_type = { | 85 | static struct hw_interrupt_type cqreek_irq_type = { |
| 86 | "CqREEK-IRQ", | 86 | .typename = "CqREEK-IRQ", |
| 87 | startup_cqreek_irq, | 87 | .startup = startup_cqreek_irq, |
| 88 | shutdown_cqreek_irq, | 88 | .shutdown = shutdown_cqreek_irq, |
| 89 | enable_cqreek_irq, | 89 | .enable = enable_cqreek_irq, |
| 90 | disable_cqreek_irq, | 90 | .disable = disable_cqreek_irq, |
| 91 | mask_and_ack_cqreek, | 91 | .ack = mask_and_ack_cqreek, |
| 92 | end_cqreek_irq | 92 | .end = end_cqreek_irq |
| 93 | }; | 93 | }; |
| 94 | 94 | ||
| 95 | int cqreek_has_ide, cqreek_has_isa; | 95 | int cqreek_has_ide, cqreek_has_isa; |
diff --git a/arch/sh/boards/harp/irq.c b/arch/sh/boards/harp/irq.c index acd58489970f..52d0ba39031b 100644 --- a/arch/sh/boards/harp/irq.c +++ b/arch/sh/boards/harp/irq.c | |||
| @@ -39,13 +39,13 @@ static unsigned int startup_harp_irq(unsigned int irq) | |||
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | static struct hw_interrupt_type harp_irq_type = { | 41 | static struct hw_interrupt_type harp_irq_type = { |
| 42 | "Harp-IRQ", | 42 | .typename = "Harp-IRQ", |
| 43 | startup_harp_irq, | 43 | .startup = startup_harp_irq, |
| 44 | shutdown_harp_irq, | 44 | .shutdown = shutdown_harp_irq, |
| 45 | enable_harp_irq, | 45 | .enable = enable_harp_irq, |
| 46 | disable_harp_irq, | 46 | .disable = disable_harp_irq, |
| 47 | mask_and_ack_harp, | 47 | .ack = mask_and_ack_harp, |
| 48 | end_harp_irq | 48 | .end = end_harp_irq |
| 49 | }; | 49 | }; |
| 50 | 50 | ||
| 51 | static void disable_harp_irq(unsigned int irq) | 51 | static void disable_harp_irq(unsigned int irq) |
diff --git a/arch/sh/boards/overdrive/irq.c b/arch/sh/boards/overdrive/irq.c index 23adc6be71e7..715e8feb3a68 100644 --- a/arch/sh/boards/overdrive/irq.c +++ b/arch/sh/boards/overdrive/irq.c | |||
| @@ -86,13 +86,13 @@ static unsigned int startup_od_irq(unsigned int irq) | |||
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | static struct hw_interrupt_type od_irq_type = { | 88 | static struct hw_interrupt_type od_irq_type = { |
| 89 | "Overdrive-IRQ", | 89 | .typename = "Overdrive-IRQ", |
| 90 | startup_od_irq, | 90 | .startup = startup_od_irq, |
| 91 | shutdown_od_irq, | 91 | .shutdown = shutdown_od_irq, |
| 92 | enable_od_irq, | 92 | .enable = enable_od_irq, |
| 93 | disable_od_irq, | 93 | .disable = disable_od_irq, |
| 94 | mask_and_ack_od, | 94 | .ack = mask_and_ack_od, |
| 95 | end_od_irq | 95 | .end = end_od_irq |
| 96 | }; | 96 | }; |
| 97 | 97 | ||
| 98 | static void disable_od_irq(unsigned int irq) | 98 | static void disable_od_irq(unsigned int irq) |
diff --git a/arch/sh/boards/renesas/hs7751rvoip/irq.c b/arch/sh/boards/renesas/hs7751rvoip/irq.c index a7921f67a35f..ed4c5b50ea45 100644 --- a/arch/sh/boards/renesas/hs7751rvoip/irq.c +++ b/arch/sh/boards/renesas/hs7751rvoip/irq.c | |||
| @@ -74,13 +74,13 @@ static void end_hs7751rvoip_irq(unsigned int irq) | |||
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | static struct hw_interrupt_type hs7751rvoip_irq_type = { | 76 | static struct hw_interrupt_type hs7751rvoip_irq_type = { |
| 77 | "HS7751RVoIP IRQ", | 77 | .typename = "HS7751RVoIP IRQ", |
| 78 | startup_hs7751rvoip_irq, | 78 | .startup = startup_hs7751rvoip_irq, |
| 79 | shutdown_hs7751rvoip_irq, | 79 | .shutdown = shutdown_hs7751rvoip_irq, |
| 80 | enable_hs7751rvoip_irq, | 80 | .enable = enable_hs7751rvoip_irq, |
| 81 | disable_hs7751rvoip_irq, | 81 | .disable = disable_hs7751rvoip_irq, |
| 82 | ack_hs7751rvoip_irq, | 82 | .ack = ack_hs7751rvoip_irq, |
| 83 | end_hs7751rvoip_irq, | 83 | .end = end_hs7751rvoip_irq, |
| 84 | }; | 84 | }; |
| 85 | 85 | ||
| 86 | static void make_hs7751rvoip_irq(unsigned int irq) | 86 | static void make_hs7751rvoip_irq(unsigned int irq) |
diff --git a/arch/sh/boards/renesas/rts7751r2d/irq.c b/arch/sh/boards/renesas/rts7751r2d/irq.c index 95717f4f1e2d..d36c9374aed1 100644 --- a/arch/sh/boards/renesas/rts7751r2d/irq.c +++ b/arch/sh/boards/renesas/rts7751r2d/irq.c | |||
| @@ -88,13 +88,13 @@ static void end_rts7751r2d_irq(unsigned int irq) | |||
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | static struct hw_interrupt_type rts7751r2d_irq_type = { | 90 | static struct hw_interrupt_type rts7751r2d_irq_type = { |
| 91 | "RTS7751R2D IRQ", | 91 | .typename = "RTS7751R2D IRQ", |
| 92 | startup_rts7751r2d_irq, | 92 | .startup = startup_rts7751r2d_irq, |
| 93 | shutdown_rts7751r2d_irq, | 93 | .shutdown = shutdown_rts7751r2d_irq, |
| 94 | enable_rts7751r2d_irq, | 94 | .enable = enable_rts7751r2d_irq, |
| 95 | disable_rts7751r2d_irq, | 95 | .disable = disable_rts7751r2d_irq, |
| 96 | ack_rts7751r2d_irq, | 96 | .ack = ack_rts7751r2d_irq, |
| 97 | end_rts7751r2d_irq, | 97 | .end = end_rts7751r2d_irq, |
| 98 | }; | 98 | }; |
| 99 | 99 | ||
| 100 | static void make_rts7751r2d_irq(unsigned int irq) | 100 | static void make_rts7751r2d_irq(unsigned int irq) |
diff --git a/arch/sh/boards/renesas/systemh/irq.c b/arch/sh/boards/renesas/systemh/irq.c index 5675a4134eee..7a2eb10edb56 100644 --- a/arch/sh/boards/renesas/systemh/irq.c +++ b/arch/sh/boards/renesas/systemh/irq.c | |||
| @@ -35,13 +35,13 @@ static void end_systemh_irq(unsigned int irq); | |||
| 35 | 35 | ||
| 36 | /* hw_interrupt_type */ | 36 | /* hw_interrupt_type */ |
| 37 | static struct hw_interrupt_type systemh_irq_type = { | 37 | static struct hw_interrupt_type systemh_irq_type = { |
| 38 | " SystemH Register", | 38 | .typename = " SystemH Register", |
| 39 | startup_systemh_irq, | 39 | .startup = startup_systemh_irq, |
| 40 | shutdown_systemh_irq, | 40 | .shutdown = shutdown_systemh_irq, |
| 41 | enable_systemh_irq, | 41 | .enable = enable_systemh_irq, |
| 42 | disable_systemh_irq, | 42 | .disable = disable_systemh_irq, |
| 43 | mask_and_ack_systemh, | 43 | .ack = mask_and_ack_systemh, |
| 44 | end_systemh_irq | 44 | .end = end_systemh_irq |
| 45 | }; | 45 | }; |
| 46 | 46 | ||
| 47 | static unsigned int startup_systemh_irq(unsigned int irq) | 47 | static unsigned int startup_systemh_irq(unsigned int irq) |
diff --git a/arch/sh/boards/superh/microdev/irq.c b/arch/sh/boards/superh/microdev/irq.c index 1298883eca4b..1395c1e65da4 100644 --- a/arch/sh/boards/superh/microdev/irq.c +++ b/arch/sh/boards/superh/microdev/irq.c | |||
| @@ -83,13 +83,13 @@ static unsigned int startup_microdev_irq(unsigned int irq) | |||
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | static struct hw_interrupt_type microdev_irq_type = { | 85 | static struct hw_interrupt_type microdev_irq_type = { |
| 86 | "MicroDev-IRQ", | 86 | .typename = "MicroDev-IRQ", |
| 87 | startup_microdev_irq, | 87 | .startup = startup_microdev_irq, |
| 88 | shutdown_microdev_irq, | 88 | .shutdown = shutdown_microdev_irq, |
| 89 | enable_microdev_irq, | 89 | .enable = enable_microdev_irq, |
| 90 | disable_microdev_irq, | 90 | .disable = disable_microdev_irq, |
| 91 | mask_and_ack_microdev, | 91 | .ack = mask_and_ack_microdev, |
| 92 | end_microdev_irq | 92 | .end = end_microdev_irq |
| 93 | }; | 93 | }; |
| 94 | 94 | ||
| 95 | static void disable_microdev_irq(unsigned int irq) | 95 | static void disable_microdev_irq(unsigned int irq) |
