|
@@ -376,7 +376,7 @@ static struct spi_board_info spi_board_info[] __initdata = {
|
|
.bus_num = 1,
|
|
.bus_num = 1,
|
|
.chip_select = 0,
|
|
.chip_select = 0,
|
|
.controller_data = &staccel_chip_info,
|
|
.controller_data = &staccel_chip_info,
|
|
- .irq = IRQ_GPIO(96),
|
|
|
|
|
|
+ .irq = PXA_GPIO_TO_IRQ(96),
|
|
}, {
|
|
}, {
|
|
.modalias = "cc2420",
|
|
.modalias = "cc2420",
|
|
.max_speed_hz = 6500000,
|
|
.max_speed_hz = 6500000,
|
|
@@ -560,18 +560,18 @@ static struct i2c_board_info __initdata imote2_i2c_board_info[] = {
|
|
/* Through a nand gate - Also beware, on V2 sensor board the
|
|
/* Through a nand gate - Also beware, on V2 sensor board the
|
|
* pull up resistors are missing.
|
|
* pull up resistors are missing.
|
|
*/
|
|
*/
|
|
- .irq = IRQ_GPIO(99),
|
|
|
|
|
|
+ .irq = PXA_GPIO_TO_IRQ(99),
|
|
}, { /* ITS400 Sensor board only */
|
|
}, { /* ITS400 Sensor board only */
|
|
.type = "tsl2561",
|
|
.type = "tsl2561",
|
|
.addr = 0x49,
|
|
.addr = 0x49,
|
|
/* Through a nand gate - Also beware, on V2 sensor board the
|
|
/* Through a nand gate - Also beware, on V2 sensor board the
|
|
* pull up resistors are missing.
|
|
* pull up resistors are missing.
|
|
*/
|
|
*/
|
|
- .irq = IRQ_GPIO(99),
|
|
|
|
|
|
+ .irq = PXA_GPIO_TO_IRQ(99),
|
|
}, { /* ITS400 Sensor board only */
|
|
}, { /* ITS400 Sensor board only */
|
|
.type = "tmp175",
|
|
.type = "tmp175",
|
|
.addr = 0x4A,
|
|
.addr = 0x4A,
|
|
- .irq = IRQ_GPIO(96),
|
|
|
|
|
|
+ .irq = PXA_GPIO_TO_IRQ(96),
|
|
}, { /* IMB400 Multimedia board */
|
|
}, { /* IMB400 Multimedia board */
|
|
.type = "wm8940",
|
|
.type = "wm8940",
|
|
.addr = 0x1A,
|
|
.addr = 0x1A,
|
|
@@ -661,8 +661,8 @@ static struct resource smc91x_resources[] = {
|
|
.flags = IORESOURCE_MEM,
|
|
.flags = IORESOURCE_MEM,
|
|
},
|
|
},
|
|
[1] = {
|
|
[1] = {
|
|
- .start = IRQ_GPIO(40),
|
|
|
|
- .end = IRQ_GPIO(40),
|
|
|
|
|
|
+ .start = PXA_GPIO_TO_IRQ(40),
|
|
|
|
+ .end = PXA_GPIO_TO_IRQ(40),
|
|
.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
|
|
.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -707,7 +707,7 @@ static int stargate2_mci_init(struct device *dev,
|
|
}
|
|
}
|
|
gpio_direction_input(SG2_GPIO_nSD_DETECT);
|
|
gpio_direction_input(SG2_GPIO_nSD_DETECT);
|
|
|
|
|
|
- err = request_irq(IRQ_GPIO(SG2_GPIO_nSD_DETECT),
|
|
|
|
|
|
+ err = request_irq(PXA_GPIO_TO_IRQ(SG2_GPIO_nSD_DETECT),
|
|
stargate2_detect_int,
|
|
stargate2_detect_int,
|
|
IRQ_TYPE_EDGE_BOTH,
|
|
IRQ_TYPE_EDGE_BOTH,
|
|
"MMC card detect",
|
|
"MMC card detect",
|
|
@@ -738,7 +738,7 @@ static void stargate2_mci_setpower(struct device *dev, unsigned int vdd)
|
|
|
|
|
|
static void stargate2_mci_exit(struct device *dev, void *data)
|
|
static void stargate2_mci_exit(struct device *dev, void *data)
|
|
{
|
|
{
|
|
- free_irq(IRQ_GPIO(SG2_GPIO_nSD_DETECT), data);
|
|
|
|
|
|
+ free_irq(PXA_GPIO_TO_IRQ(SG2_GPIO_nSD_DETECT), data);
|
|
gpio_free(SG2_SD_POWER_ENABLE);
|
|
gpio_free(SG2_SD_POWER_ENABLE);
|
|
gpio_free(SG2_GPIO_nSD_DETECT);
|
|
gpio_free(SG2_GPIO_nSD_DETECT);
|
|
}
|
|
}
|
|
@@ -938,18 +938,18 @@ static struct i2c_board_info __initdata stargate2_i2c_board_info[] = {
|
|
/* Through a nand gate - Also beware, on V2 sensor board the
|
|
/* Through a nand gate - Also beware, on V2 sensor board the
|
|
* pull up resistors are missing.
|
|
* pull up resistors are missing.
|
|
*/
|
|
*/
|
|
- .irq = IRQ_GPIO(99),
|
|
|
|
|
|
+ .irq = PXA_GPIO_TO_IRQ(99),
|
|
}, { /* ITS400 Sensor board only */
|
|
}, { /* ITS400 Sensor board only */
|
|
.type = "tsl2561",
|
|
.type = "tsl2561",
|
|
.addr = 0x49,
|
|
.addr = 0x49,
|
|
/* Through a nand gate - Also beware, on V2 sensor board the
|
|
/* Through a nand gate - Also beware, on V2 sensor board the
|
|
* pull up resistors are missing.
|
|
* pull up resistors are missing.
|
|
*/
|
|
*/
|
|
- .irq = IRQ_GPIO(99),
|
|
|
|
|
|
+ .irq = PXA_GPIO_TO_IRQ(99),
|
|
}, { /* ITS400 Sensor board only */
|
|
}, { /* ITS400 Sensor board only */
|
|
.type = "tmp175",
|
|
.type = "tmp175",
|
|
.addr = 0x4A,
|
|
.addr = 0x4A,
|
|
- .irq = IRQ_GPIO(96),
|
|
|
|
|
|
+ .irq = PXA_GPIO_TO_IRQ(96),
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
|