提交 6161715e 编写于 作者: S Shawn Guo 提交者: Grant Likely

gpio/mxs: remove irq_high related implementation

The irq_high stuff was mistakenly copied from mxc gpio driver.
The mxs gpio controller has only one irq line for each 32-pin
gpio port.  The patch remove irq_high related codes.
Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 06f88a8a
...@@ -53,7 +53,6 @@ struct mxs_gpio_port { ...@@ -53,7 +53,6 @@ struct mxs_gpio_port {
void __iomem *base; void __iomem *base;
int id; int id;
int irq; int irq;
int irq_high;
int virtual_irq_start; int virtual_irq_start;
struct bgpio_chip bgc; struct bgpio_chip bgc;
}; };
...@@ -174,21 +173,12 @@ static void mxs_gpio_irq_handler(u32 irq, struct irq_desc *desc) ...@@ -174,21 +173,12 @@ static void mxs_gpio_irq_handler(u32 irq, struct irq_desc *desc)
*/ */
static int mxs_gpio_set_wake_irq(struct irq_data *d, unsigned int enable) static int mxs_gpio_set_wake_irq(struct irq_data *d, unsigned int enable)
{ {
u32 gpio = irq_to_gpio(d->irq);
u32 gpio_idx = gpio & 0x1f;
struct mxs_gpio_port *port = irq_data_get_irq_chip_data(d); struct mxs_gpio_port *port = irq_data_get_irq_chip_data(d);
if (enable) { if (enable)
if (port->irq_high && (gpio_idx >= 16)) enable_irq_wake(port->irq);
enable_irq_wake(port->irq_high); else
else disable_irq_wake(port->irq);
enable_irq_wake(port->irq);
} else {
if (port->irq_high && (gpio_idx >= 16))
disable_irq_wake(port->irq_high);
else
disable_irq_wake(port->irq);
}
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册