ARM: pxa: rename gpio_to_irq and irq_to_gpio
Avoid to define gpio_to_irq() and irq_to_gpio() for potential name confliction since multiple architecture will be built together. Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
This commit is contained in:
@@ -50,8 +50,8 @@ static struct resource capc7117_ide_resources[] = {
|
||||
.flags = IORESOURCE_MEM
|
||||
},
|
||||
[2] = {
|
||||
.start = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO76)),
|
||||
.end = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO76)),
|
||||
.start = PXA_GPIO_TO_IRQ(mfp_to_gpio(MFP_PIN_GPIO76)),
|
||||
.end = PXA_GPIO_TO_IRQ(mfp_to_gpio(MFP_PIN_GPIO76)),
|
||||
.flags = IORESOURCE_IRQ | IRQF_TRIGGER_RISING
|
||||
}
|
||||
};
|
||||
@@ -80,7 +80,7 @@ static void __init capc7117_ide_init(void)
|
||||
static struct plat_serial8250_port ti16c752_platform_data[] = {
|
||||
[0] = {
|
||||
.mapbase = 0x14000000,
|
||||
.irq = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO78)),
|
||||
.irq = PXA_GPIO_TO_IRQ(mfp_to_gpio(MFP_PIN_GPIO78)),
|
||||
.irqflags = IRQF_TRIGGER_RISING,
|
||||
.flags = TI16C752_FLAGS,
|
||||
.iotype = UPIO_MEM,
|
||||
@@ -89,7 +89,7 @@ static struct plat_serial8250_port ti16c752_platform_data[] = {
|
||||
},
|
||||
[1] = {
|
||||
.mapbase = 0x14000040,
|
||||
.irq = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO79)),
|
||||
.irq = PXA_GPIO_TO_IRQ(mfp_to_gpio(MFP_PIN_GPIO79)),
|
||||
.irqflags = IRQF_TRIGGER_RISING,
|
||||
.flags = TI16C752_FLAGS,
|
||||
.iotype = UPIO_MEM,
|
||||
@@ -98,7 +98,7 @@ static struct plat_serial8250_port ti16c752_platform_data[] = {
|
||||
},
|
||||
[2] = {
|
||||
.mapbase = 0x14000080,
|
||||
.irq = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO80)),
|
||||
.irq = PXA_GPIO_TO_IRQ(mfp_to_gpio(MFP_PIN_GPIO80)),
|
||||
.irqflags = IRQF_TRIGGER_RISING,
|
||||
.flags = TI16C752_FLAGS,
|
||||
.iotype = UPIO_MEM,
|
||||
@@ -107,7 +107,7 @@ static struct plat_serial8250_port ti16c752_platform_data[] = {
|
||||
},
|
||||
[3] = {
|
||||
.mapbase = 0x140000c0,
|
||||
.irq = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO81)),
|
||||
.irq = PXA_GPIO_TO_IRQ(mfp_to_gpio(MFP_PIN_GPIO81)),
|
||||
.irqflags = IRQF_TRIGGER_RISING,
|
||||
.flags = TI16C752_FLAGS,
|
||||
.iotype = UPIO_MEM,
|
||||
|
Reference in New Issue
Block a user