diff options
| author | Takashi Iwai <tiwai@suse.de> | 2011-04-09 04:05:30 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2011-04-09 04:05:30 -0400 |
| commit | 664cee46e755b37204f1731cb8726db610f3486d (patch) | |
| tree | 11ed0d43eff14123534785cf25c0a2143e134e7e /arch/sh/boards | |
| parent | a0334c50bf0ba7c720ed00f931e721c989efd233 (diff) | |
| parent | 4e29402fe4b2006c994eed5020c42b2cc87d9b42 (diff) | |
Merge branch 'fix/asoc' into for-linus
Diffstat (limited to 'arch/sh/boards')
| -rw-r--r-- | arch/sh/boards/board-magicpanelr2.c | 12 | ||||
| -rw-r--r-- | arch/sh/boards/mach-ap325rxa/setup.c | 6 | ||||
| -rw-r--r-- | arch/sh/boards/mach-cayman/irq.c | 4 | ||||
| -rw-r--r-- | arch/sh/boards/mach-dreamcast/irq.c | 3 | ||||
| -rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 14 | ||||
| -rw-r--r-- | arch/sh/boards/mach-kfr2r09/setup.c | 4 | ||||
| -rw-r--r-- | arch/sh/boards/mach-microdev/irq.c | 2 | ||||
| -rw-r--r-- | arch/sh/boards/mach-migor/setup.c | 4 | ||||
| -rw-r--r-- | arch/sh/boards/mach-se/7206/irq.c | 5 | ||||
| -rw-r--r-- | arch/sh/boards/mach-se/7343/irq.c | 23 | ||||
| -rw-r--r-- | arch/sh/boards/mach-se/7722/irq.c | 15 | ||||
| -rw-r--r-- | arch/sh/boards/mach-se/7724/irq.c | 15 | ||||
| -rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 6 | ||||
| -rw-r--r-- | arch/sh/boards/mach-x3proto/gpio.c | 8 |
14 files changed, 60 insertions, 61 deletions
diff --git a/arch/sh/boards/board-magicpanelr2.c b/arch/sh/boards/board-magicpanelr2.c index efba450a0518..93f5039099b7 100644 --- a/arch/sh/boards/board-magicpanelr2.c +++ b/arch/sh/boards/board-magicpanelr2.c | |||
| @@ -388,12 +388,12 @@ static void __init init_mpr2_IRQ(void) | |||
| 388 | { | 388 | { |
| 389 | plat_irq_setup_pins(IRQ_MODE_IRQ); /* install handlers for IRQ0-5 */ | 389 | plat_irq_setup_pins(IRQ_MODE_IRQ); /* install handlers for IRQ0-5 */ |
| 390 | 390 | ||
| 391 | set_irq_type(32, IRQ_TYPE_LEVEL_LOW); /* IRQ0 CAN1 */ | 391 | irq_set_irq_type(32, IRQ_TYPE_LEVEL_LOW); /* IRQ0 CAN1 */ |
| 392 | set_irq_type(33, IRQ_TYPE_LEVEL_LOW); /* IRQ1 CAN2 */ | 392 | irq_set_irq_type(33, IRQ_TYPE_LEVEL_LOW); /* IRQ1 CAN2 */ |
| 393 | set_irq_type(34, IRQ_TYPE_LEVEL_LOW); /* IRQ2 CAN3 */ | 393 | irq_set_irq_type(34, IRQ_TYPE_LEVEL_LOW); /* IRQ2 CAN3 */ |
| 394 | set_irq_type(35, IRQ_TYPE_LEVEL_LOW); /* IRQ3 SMSC9115 */ | 394 | irq_set_irq_type(35, IRQ_TYPE_LEVEL_LOW); /* IRQ3 SMSC9115 */ |
| 395 | set_irq_type(36, IRQ_TYPE_EDGE_RISING); /* IRQ4 touchscreen */ | 395 | irq_set_irq_type(36, IRQ_TYPE_EDGE_RISING); /* IRQ4 touchscreen */ |
| 396 | set_irq_type(37, IRQ_TYPE_EDGE_FALLING); /* IRQ5 touchscreen */ | 396 | irq_set_irq_type(37, IRQ_TYPE_EDGE_FALLING); /* IRQ5 touchscreen */ |
| 397 | 397 | ||
| 398 | intc_set_priority(32, 13); /* IRQ0 CAN1 */ | 398 | intc_set_priority(32, 13); /* IRQ0 CAN1 */ |
| 399 | intc_set_priority(33, 13); /* IRQ0 CAN2 */ | 399 | intc_set_priority(33, 13); /* IRQ0 CAN2 */ |
diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c index 3e5fc3bbf3ed..636d8318a72a 100644 --- a/arch/sh/boards/mach-ap325rxa/setup.c +++ b/arch/sh/boards/mach-ap325rxa/setup.c | |||
| @@ -14,8 +14,8 @@ | |||
| 14 | #include <linux/device.h> | 14 | #include <linux/device.h> |
| 15 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
| 16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
| 17 | #include <linux/mfd/sh_mobile_sdhi.h> | ||
| 18 | #include <linux/mmc/host.h> | 17 | #include <linux/mmc/host.h> |
| 18 | #include <linux/mmc/sh_mobile_sdhi.h> | ||
| 19 | #include <linux/mtd/physmap.h> | 19 | #include <linux/mtd/physmap.h> |
| 20 | #include <linux/mtd/sh_flctl.h> | 20 | #include <linux/mtd/sh_flctl.h> |
| 21 | #include <linux/delay.h> | 21 | #include <linux/delay.h> |
| @@ -423,7 +423,7 @@ static struct resource sdhi0_cn3_resources[] = { | |||
| 423 | [0] = { | 423 | [0] = { |
| 424 | .name = "SDHI0", | 424 | .name = "SDHI0", |
| 425 | .start = 0x04ce0000, | 425 | .start = 0x04ce0000, |
| 426 | .end = 0x04ce01ff, | 426 | .end = 0x04ce00ff, |
| 427 | .flags = IORESOURCE_MEM, | 427 | .flags = IORESOURCE_MEM, |
| 428 | }, | 428 | }, |
| 429 | [1] = { | 429 | [1] = { |
| @@ -453,7 +453,7 @@ static struct resource sdhi1_cn7_resources[] = { | |||
| 453 | [0] = { | 453 | [0] = { |
| 454 | .name = "SDHI1", | 454 | .name = "SDHI1", |
| 455 | .start = 0x04cf0000, | 455 | .start = 0x04cf0000, |
| 456 | .end = 0x04cf01ff, | 456 | .end = 0x04cf00ff, |
| 457 | .flags = IORESOURCE_MEM, | 457 | .flags = IORESOURCE_MEM, |
| 458 | }, | 458 | }, |
| 459 | [1] = { | 459 | [1] = { |
diff --git a/arch/sh/boards/mach-cayman/irq.c b/arch/sh/boards/mach-cayman/irq.c index d7ac5af9d102..311bcebdbd07 100644 --- a/arch/sh/boards/mach-cayman/irq.c +++ b/arch/sh/boards/mach-cayman/irq.c | |||
| @@ -149,8 +149,8 @@ void init_cayman_irq(void) | |||
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | for (i = 0; i < NR_EXT_IRQS; i++) { | 151 | for (i = 0; i < NR_EXT_IRQS; i++) { |
| 152 | set_irq_chip_and_handler(START_EXT_IRQS + i, &cayman_irq_type, | 152 | irq_set_chip_and_handler(START_EXT_IRQS + i, |
| 153 | handle_level_irq); | 153 | &cayman_irq_type, handle_level_irq); |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | /* Setup the SMSC interrupt */ | 156 | /* Setup the SMSC interrupt */ |
diff --git a/arch/sh/boards/mach-dreamcast/irq.c b/arch/sh/boards/mach-dreamcast/irq.c index 72e7ac9549da..78cf2ab89d7a 100644 --- a/arch/sh/boards/mach-dreamcast/irq.c +++ b/arch/sh/boards/mach-dreamcast/irq.c | |||
| @@ -161,7 +161,6 @@ void systemasic_irq_init(void) | |||
| 161 | return; | 161 | return; |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | set_irq_chip_and_handler(i, &systemasic_int, | 164 | irq_set_chip_and_handler(i, &systemasic_int, handle_level_irq); |
| 165 | handle_level_irq); | ||
| 166 | } | 165 | } |
| 167 | } | 166 | } |
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index e44480ce2ea8..fd4ff25f23b2 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
| @@ -11,9 +11,9 @@ | |||
| 11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
| 12 | #include <linux/device.h> | 12 | #include <linux/device.h> |
| 13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
| 14 | #include <linux/mfd/sh_mobile_sdhi.h> | ||
| 15 | #include <linux/mmc/host.h> | 14 | #include <linux/mmc/host.h> |
| 16 | #include <linux/mmc/sh_mmcif.h> | 15 | #include <linux/mmc/sh_mmcif.h> |
| 16 | #include <linux/mmc/sh_mobile_sdhi.h> | ||
| 17 | #include <linux/mtd/physmap.h> | 17 | #include <linux/mtd/physmap.h> |
| 18 | #include <linux/gpio.h> | 18 | #include <linux/gpio.h> |
| 19 | #include <linux/interrupt.h> | 19 | #include <linux/interrupt.h> |
| @@ -464,7 +464,7 @@ static struct i2c_board_info ts_i2c_clients = { | |||
| 464 | .irq = IRQ0, | 464 | .irq = IRQ0, |
| 465 | }; | 465 | }; |
| 466 | 466 | ||
| 467 | #ifdef CONFIG_MFD_SH_MOBILE_SDHI | 467 | #if defined(CONFIG_MMC_TMIO) || defined(CONFIG_MMC_TMIO_MODULE) |
| 468 | /* SDHI0 */ | 468 | /* SDHI0 */ |
| 469 | static void sdhi0_set_pwr(struct platform_device *pdev, int state) | 469 | static void sdhi0_set_pwr(struct platform_device *pdev, int state) |
| 470 | { | 470 | { |
| @@ -482,7 +482,7 @@ static struct resource sdhi0_resources[] = { | |||
| 482 | [0] = { | 482 | [0] = { |
| 483 | .name = "SDHI0", | 483 | .name = "SDHI0", |
| 484 | .start = 0x04ce0000, | 484 | .start = 0x04ce0000, |
| 485 | .end = 0x04ce01ff, | 485 | .end = 0x04ce00ff, |
| 486 | .flags = IORESOURCE_MEM, | 486 | .flags = IORESOURCE_MEM, |
| 487 | }, | 487 | }, |
| 488 | [1] = { | 488 | [1] = { |
| @@ -522,7 +522,7 @@ static struct resource sdhi1_resources[] = { | |||
| 522 | [0] = { | 522 | [0] = { |
| 523 | .name = "SDHI1", | 523 | .name = "SDHI1", |
| 524 | .start = 0x04cf0000, | 524 | .start = 0x04cf0000, |
| 525 | .end = 0x04cf01ff, | 525 | .end = 0x04cf00ff, |
| 526 | .flags = IORESOURCE_MEM, | 526 | .flags = IORESOURCE_MEM, |
| 527 | }, | 527 | }, |
| 528 | [1] = { | 528 | [1] = { |
| @@ -880,7 +880,7 @@ static struct platform_device *ecovec_devices[] __initdata = { | |||
| 880 | &ceu0_device, | 880 | &ceu0_device, |
| 881 | &ceu1_device, | 881 | &ceu1_device, |
| 882 | &keysc_device, | 882 | &keysc_device, |
| 883 | #ifdef CONFIG_MFD_SH_MOBILE_SDHI | 883 | #if defined(CONFIG_MMC_TMIO) || defined(CONFIG_MMC_TMIO_MODULE) |
| 884 | &sdhi0_device, | 884 | &sdhi0_device, |
| 885 | #if !defined(CONFIG_MMC_SH_MMCIF) | 885 | #if !defined(CONFIG_MMC_SH_MMCIF) |
| 886 | &sdhi1_device, | 886 | &sdhi1_device, |
| @@ -1102,7 +1102,7 @@ static int __init arch_setup(void) | |||
| 1102 | 1102 | ||
| 1103 | /* enable TouchScreen */ | 1103 | /* enable TouchScreen */ |
| 1104 | i2c_register_board_info(0, &ts_i2c_clients, 1); | 1104 | i2c_register_board_info(0, &ts_i2c_clients, 1); |
| 1105 | set_irq_type(IRQ0, IRQ_TYPE_LEVEL_LOW); | 1105 | irq_set_irq_type(IRQ0, IRQ_TYPE_LEVEL_LOW); |
| 1106 | } | 1106 | } |
| 1107 | 1107 | ||
| 1108 | /* enable CEU0 */ | 1108 | /* enable CEU0 */ |
| @@ -1162,7 +1162,7 @@ static int __init arch_setup(void) | |||
| 1162 | gpio_direction_input(GPIO_PTR5); | 1162 | gpio_direction_input(GPIO_PTR5); |
| 1163 | gpio_direction_input(GPIO_PTR6); | 1163 | gpio_direction_input(GPIO_PTR6); |
| 1164 | 1164 | ||
| 1165 | #ifdef CONFIG_MFD_SH_MOBILE_SDHI | 1165 | #if defined(CONFIG_MMC_TMIO) || defined(CONFIG_MMC_TMIO_MODULE) |
| 1166 | /* enable SDHI0 on CN11 (needs DS2.4 set to ON) */ | 1166 | /* enable SDHI0 on CN11 (needs DS2.4 set to ON) */ |
| 1167 | gpio_request(GPIO_FN_SDHI0CD, NULL); | 1167 | gpio_request(GPIO_FN_SDHI0CD, NULL); |
| 1168 | gpio_request(GPIO_FN_SDHI0WP, NULL); | 1168 | gpio_request(GPIO_FN_SDHI0WP, NULL); |
diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c index 7504daaa85da..8b4abbbd1477 100644 --- a/arch/sh/boards/mach-kfr2r09/setup.c +++ b/arch/sh/boards/mach-kfr2r09/setup.c | |||
| @@ -10,8 +10,8 @@ | |||
| 10 | #include <linux/init.h> | 10 | #include <linux/init.h> |
| 11 | #include <linux/platform_device.h> | 11 | #include <linux/platform_device.h> |
| 12 | #include <linux/interrupt.h> | 12 | #include <linux/interrupt.h> |
| 13 | #include <linux/mfd/sh_mobile_sdhi.h> | ||
| 14 | #include <linux/mmc/host.h> | 13 | #include <linux/mmc/host.h> |
| 14 | #include <linux/mmc/sh_mobile_sdhi.h> | ||
| 15 | #include <linux/mfd/tmio.h> | 15 | #include <linux/mfd/tmio.h> |
| 16 | #include <linux/mtd/physmap.h> | 16 | #include <linux/mtd/physmap.h> |
| 17 | #include <linux/mtd/onenand.h> | 17 | #include <linux/mtd/onenand.h> |
| @@ -354,7 +354,7 @@ static struct resource kfr2r09_sh_sdhi0_resources[] = { | |||
| 354 | [0] = { | 354 | [0] = { |
| 355 | .name = "SDHI0", | 355 | .name = "SDHI0", |
| 356 | .start = 0x04ce0000, | 356 | .start = 0x04ce0000, |
| 357 | .end = 0x04ce01ff, | 357 | .end = 0x04ce00ff, |
| 358 | .flags = IORESOURCE_MEM, | 358 | .flags = IORESOURCE_MEM, |
| 359 | }, | 359 | }, |
| 360 | [1] = { | 360 | [1] = { |
diff --git a/arch/sh/boards/mach-microdev/irq.c b/arch/sh/boards/mach-microdev/irq.c index c35001fd9032..4fb00369f0e2 100644 --- a/arch/sh/boards/mach-microdev/irq.c +++ b/arch/sh/boards/mach-microdev/irq.c | |||
| @@ -117,7 +117,7 @@ static struct irq_chip microdev_irq_type = { | |||
| 117 | static void __init make_microdev_irq(unsigned int irq) | 117 | static void __init make_microdev_irq(unsigned int irq) |
| 118 | { | 118 | { |
| 119 | disable_irq_nosync(irq); | 119 | disable_irq_nosync(irq); |
| 120 | set_irq_chip_and_handler(irq, µdev_irq_type, handle_level_irq); | 120 | irq_set_chip_and_handler(irq, µdev_irq_type, handle_level_irq); |
| 121 | disable_microdev_irq(irq_get_irq_data(irq)); | 121 | disable_microdev_irq(irq_get_irq_data(irq)); |
| 122 | } | 122 | } |
| 123 | 123 | ||
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c index 03a7ffe729d5..184fde169132 100644 --- a/arch/sh/boards/mach-migor/setup.c +++ b/arch/sh/boards/mach-migor/setup.c | |||
| @@ -12,8 +12,8 @@ | |||
| 12 | #include <linux/interrupt.h> | 12 | #include <linux/interrupt.h> |
| 13 | #include <linux/input.h> | 13 | #include <linux/input.h> |
| 14 | #include <linux/input/sh_keysc.h> | 14 | #include <linux/input/sh_keysc.h> |
| 15 | #include <linux/mfd/sh_mobile_sdhi.h> | ||
| 16 | #include <linux/mmc/host.h> | 15 | #include <linux/mmc/host.h> |
| 16 | #include <linux/mmc/sh_mobile_sdhi.h> | ||
| 17 | #include <linux/mtd/physmap.h> | 17 | #include <linux/mtd/physmap.h> |
| 18 | #include <linux/mtd/nand.h> | 18 | #include <linux/mtd/nand.h> |
| 19 | #include <linux/i2c.h> | 19 | #include <linux/i2c.h> |
| @@ -399,7 +399,7 @@ static struct resource sdhi_cn9_resources[] = { | |||
| 399 | [0] = { | 399 | [0] = { |
| 400 | .name = "SDHI", | 400 | .name = "SDHI", |
| 401 | .start = 0x04ce0000, | 401 | .start = 0x04ce0000, |
| 402 | .end = 0x04ce01ff, | 402 | .end = 0x04ce00ff, |
| 403 | .flags = IORESOURCE_MEM, | 403 | .flags = IORESOURCE_MEM, |
| 404 | }, | 404 | }, |
| 405 | [1] = { | 405 | [1] = { |
diff --git a/arch/sh/boards/mach-se/7206/irq.c b/arch/sh/boards/mach-se/7206/irq.c index 9070d7e60704..0db058e709e9 100644 --- a/arch/sh/boards/mach-se/7206/irq.c +++ b/arch/sh/boards/mach-se/7206/irq.c | |||
| @@ -92,9 +92,8 @@ static void eoi_se7206_irq(struct irq_data *data) | |||
| 92 | { | 92 | { |
| 93 | unsigned short sts0,sts1; | 93 | unsigned short sts0,sts1; |
| 94 | unsigned int irq = data->irq; | 94 | unsigned int irq = data->irq; |
| 95 | struct irq_desc *desc = irq_to_desc(irq); | ||
| 96 | 95 | ||
| 97 | if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS))) | 96 | if (!irqd_irq_disabled(data) && !irqd_irq_inprogress(data)) |
| 98 | enable_se7206_irq(data); | 97 | enable_se7206_irq(data); |
| 99 | /* FPGA isr clear */ | 98 | /* FPGA isr clear */ |
| 100 | sts0 = __raw_readw(INTSTS0); | 99 | sts0 = __raw_readw(INTSTS0); |
| @@ -126,7 +125,7 @@ static struct irq_chip se7206_irq_chip __read_mostly = { | |||
| 126 | static void make_se7206_irq(unsigned int irq) | 125 | static void make_se7206_irq(unsigned int irq) |
| 127 | { | 126 | { |
| 128 | disable_irq_nosync(irq); | 127 | disable_irq_nosync(irq); |
| 129 | set_irq_chip_and_handler_name(irq, &se7206_irq_chip, | 128 | irq_set_chip_and_handler_name(irq, &se7206_irq_chip, |
| 130 | handle_level_irq, "level"); | 129 | handle_level_irq, "level"); |
| 131 | disable_se7206_irq(irq_get_irq_data(irq)); | 130 | disable_se7206_irq(irq_get_irq_data(irq)); |
| 132 | } | 131 | } |
diff --git a/arch/sh/boards/mach-se/7343/irq.c b/arch/sh/boards/mach-se/7343/irq.c index 76255a19417f..fd45ffc48340 100644 --- a/arch/sh/boards/mach-se/7343/irq.c +++ b/arch/sh/boards/mach-se/7343/irq.c | |||
| @@ -67,19 +67,20 @@ void __init init_7343se_IRQ(void) | |||
| 67 | return; | 67 | return; |
| 68 | se7343_fpga_irq[i] = irq; | 68 | se7343_fpga_irq[i] = irq; |
| 69 | 69 | ||
| 70 | set_irq_chip_and_handler_name(se7343_fpga_irq[i], | 70 | irq_set_chip_and_handler_name(se7343_fpga_irq[i], |
| 71 | &se7343_irq_chip, | 71 | &se7343_irq_chip, |
| 72 | handle_level_irq, "level"); | 72 | handle_level_irq, |
| 73 | "level"); | ||
| 73 | 74 | ||
| 74 | set_irq_chip_data(se7343_fpga_irq[i], (void *)i); | 75 | irq_set_chip_data(se7343_fpga_irq[i], (void *)i); |
| 75 | } | 76 | } |
| 76 | 77 | ||
| 77 | set_irq_chained_handler(IRQ0_IRQ, se7343_irq_demux); | 78 | irq_set_chained_handler(IRQ0_IRQ, se7343_irq_demux); |
| 78 | set_irq_type(IRQ0_IRQ, IRQ_TYPE_LEVEL_LOW); | 79 | irq_set_irq_type(IRQ0_IRQ, IRQ_TYPE_LEVEL_LOW); |
| 79 | set_irq_chained_handler(IRQ1_IRQ, se7343_irq_demux); | 80 | irq_set_chained_handler(IRQ1_IRQ, se7343_irq_demux); |
| 80 | set_irq_type(IRQ1_IRQ, IRQ_TYPE_LEVEL_LOW); | 81 | irq_set_irq_type(IRQ1_IRQ, IRQ_TYPE_LEVEL_LOW); |
| 81 | set_irq_chained_handler(IRQ4_IRQ, se7343_irq_demux); | 82 | irq_set_chained_handler(IRQ4_IRQ, se7343_irq_demux); |
| 82 | set_irq_type(IRQ4_IRQ, IRQ_TYPE_LEVEL_LOW); | 83 | irq_set_irq_type(IRQ4_IRQ, IRQ_TYPE_LEVEL_LOW); |
| 83 | set_irq_chained_handler(IRQ5_IRQ, se7343_irq_demux); | 84 | irq_set_chained_handler(IRQ5_IRQ, se7343_irq_demux); |
| 84 | set_irq_type(IRQ5_IRQ, IRQ_TYPE_LEVEL_LOW); | 85 | irq_set_irq_type(IRQ5_IRQ, IRQ_TYPE_LEVEL_LOW); |
| 85 | } | 86 | } |
diff --git a/arch/sh/boards/mach-se/7722/irq.c b/arch/sh/boards/mach-se/7722/irq.c index c013f95628ed..aac92f21ebd2 100644 --- a/arch/sh/boards/mach-se/7722/irq.c +++ b/arch/sh/boards/mach-se/7722/irq.c | |||
| @@ -67,16 +67,17 @@ void __init init_se7722_IRQ(void) | |||
| 67 | return; | 67 | return; |
| 68 | se7722_fpga_irq[i] = irq; | 68 | se7722_fpga_irq[i] = irq; |
| 69 | 69 | ||
| 70 | set_irq_chip_and_handler_name(se7722_fpga_irq[i], | 70 | irq_set_chip_and_handler_name(se7722_fpga_irq[i], |
| 71 | &se7722_irq_chip, | 71 | &se7722_irq_chip, |
| 72 | handle_level_irq, "level"); | 72 | handle_level_irq, |
| 73 | "level"); | ||
| 73 | 74 | ||
| 74 | set_irq_chip_data(se7722_fpga_irq[i], (void *)i); | 75 | irq_set_chip_data(se7722_fpga_irq[i], (void *)i); |
| 75 | } | 76 | } |
| 76 | 77 | ||
| 77 | set_irq_chained_handler(IRQ0_IRQ, se7722_irq_demux); | 78 | irq_set_chained_handler(IRQ0_IRQ, se7722_irq_demux); |
| 78 | set_irq_type(IRQ0_IRQ, IRQ_TYPE_LEVEL_LOW); | 79 | irq_set_irq_type(IRQ0_IRQ, IRQ_TYPE_LEVEL_LOW); |
| 79 | 80 | ||
| 80 | set_irq_chained_handler(IRQ1_IRQ, se7722_irq_demux); | 81 | irq_set_chained_handler(IRQ1_IRQ, se7722_irq_demux); |
| 81 | set_irq_type(IRQ1_IRQ, IRQ_TYPE_LEVEL_LOW); | 82 | irq_set_irq_type(IRQ1_IRQ, IRQ_TYPE_LEVEL_LOW); |
| 82 | } | 83 | } |
diff --git a/arch/sh/boards/mach-se/7724/irq.c b/arch/sh/boards/mach-se/7724/irq.c index 5bd87c22b65b..c6342ce7768d 100644 --- a/arch/sh/boards/mach-se/7724/irq.c +++ b/arch/sh/boards/mach-se/7724/irq.c | |||
| @@ -140,17 +140,16 @@ void __init init_se7724_IRQ(void) | |||
| 140 | return; | 140 | return; |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | set_irq_chip_and_handler_name(irq, | 143 | irq_set_chip_and_handler_name(irq, &se7724_irq_chip, |
| 144 | &se7724_irq_chip, | ||
| 145 | handle_level_irq, "level"); | 144 | handle_level_irq, "level"); |
| 146 | } | 145 | } |
| 147 | 146 | ||
| 148 | set_irq_chained_handler(IRQ0_IRQ, se7724_irq_demux); | 147 | irq_set_chained_handler(IRQ0_IRQ, se7724_irq_demux); |
| 149 | set_irq_type(IRQ0_IRQ, IRQ_TYPE_LEVEL_LOW); | 148 | irq_set_irq_type(IRQ0_IRQ, IRQ_TYPE_LEVEL_LOW); |
| 150 | 149 | ||
| 151 | set_irq_chained_handler(IRQ1_IRQ, se7724_irq_demux); | 150 | irq_set_chained_handler(IRQ1_IRQ, se7724_irq_demux); |
| 152 | set_irq_type(IRQ1_IRQ, IRQ_TYPE_LEVEL_LOW); | 151 | irq_set_irq_type(IRQ1_IRQ, IRQ_TYPE_LEVEL_LOW); |
| 153 | 152 | ||
| 154 | set_irq_chained_handler(IRQ2_IRQ, se7724_irq_demux); | 153 | irq_set_chained_handler(IRQ2_IRQ, se7724_irq_demux); |
| 155 | set_irq_type(IRQ2_IRQ, IRQ_TYPE_LEVEL_LOW); | 154 | irq_set_irq_type(IRQ2_IRQ, IRQ_TYPE_LEVEL_LOW); |
| 156 | } | 155 | } |
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index c8bcf6a19b55..12357671023e 100644 --- a/arch/sh/boards/mach-se/7724/setup.c +++ b/arch/sh/boards/mach-se/7724/setup.c | |||
| @@ -14,8 +14,8 @@ | |||
| 14 | #include <linux/device.h> | 14 | #include <linux/device.h> |
| 15 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
| 16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
| 17 | #include <linux/mfd/sh_mobile_sdhi.h> | ||
| 18 | #include <linux/mmc/host.h> | 17 | #include <linux/mmc/host.h> |
| 18 | #include <linux/mmc/sh_mobile_sdhi.h> | ||
| 19 | #include <linux/mtd/physmap.h> | 19 | #include <linux/mtd/physmap.h> |
| 20 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
| 21 | #include <linux/smc91x.h> | 21 | #include <linux/smc91x.h> |
| @@ -456,7 +456,7 @@ static struct resource sdhi0_cn7_resources[] = { | |||
| 456 | [0] = { | 456 | [0] = { |
| 457 | .name = "SDHI0", | 457 | .name = "SDHI0", |
| 458 | .start = 0x04ce0000, | 458 | .start = 0x04ce0000, |
| 459 | .end = 0x04ce01ff, | 459 | .end = 0x04ce00ff, |
| 460 | .flags = IORESOURCE_MEM, | 460 | .flags = IORESOURCE_MEM, |
| 461 | }, | 461 | }, |
| 462 | [1] = { | 462 | [1] = { |
| @@ -488,7 +488,7 @@ static struct resource sdhi1_cn8_resources[] = { | |||
| 488 | [0] = { | 488 | [0] = { |
| 489 | .name = "SDHI1", | 489 | .name = "SDHI1", |
| 490 | .start = 0x04cf0000, | 490 | .start = 0x04cf0000, |
| 491 | .end = 0x04cf01ff, | 491 | .end = 0x04cf00ff, |
| 492 | .flags = IORESOURCE_MEM, | 492 | .flags = IORESOURCE_MEM, |
| 493 | }, | 493 | }, |
| 494 | [1] = { | 494 | [1] = { |
diff --git a/arch/sh/boards/mach-x3proto/gpio.c b/arch/sh/boards/mach-x3proto/gpio.c index 239e74066253..f33b2b57019c 100644 --- a/arch/sh/boards/mach-x3proto/gpio.c +++ b/arch/sh/boards/mach-x3proto/gpio.c | |||
| @@ -102,8 +102,8 @@ int __init x3proto_gpio_setup(void) | |||
| 102 | 102 | ||
| 103 | spin_lock_irqsave(&x3proto_gpio_lock, flags); | 103 | spin_lock_irqsave(&x3proto_gpio_lock, flags); |
| 104 | x3proto_gpio_irq_map[i] = irq; | 104 | x3proto_gpio_irq_map[i] = irq; |
| 105 | set_irq_chip_and_handler_name(irq, &dummy_irq_chip, | 105 | irq_set_chip_and_handler_name(irq, &dummy_irq_chip, |
| 106 | handle_simple_irq, "gpio"); | 106 | handle_simple_irq, "gpio"); |
| 107 | spin_unlock_irqrestore(&x3proto_gpio_lock, flags); | 107 | spin_unlock_irqrestore(&x3proto_gpio_lock, flags); |
| 108 | } | 108 | } |
| 109 | 109 | ||
| @@ -113,8 +113,8 @@ int __init x3proto_gpio_setup(void) | |||
| 113 | x3proto_gpio_chip.base + x3proto_gpio_chip.ngpio, | 113 | x3proto_gpio_chip.base + x3proto_gpio_chip.ngpio, |
| 114 | ilsel); | 114 | ilsel); |
| 115 | 115 | ||
| 116 | set_irq_chained_handler(ilsel, x3proto_gpio_irq_handler); | 116 | irq_set_chained_handler(ilsel, x3proto_gpio_irq_handler); |
| 117 | set_irq_wake(ilsel, 1); | 117 | irq_set_irq_wake(ilsel, 1); |
| 118 | 118 | ||
| 119 | return 0; | 119 | return 0; |
| 120 | 120 | ||
