Skip to content

Commit

Permalink
ARM: imx/gpio: remove some useless casts
Browse files Browse the repository at this point in the history
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  • Loading branch information
Uwe Kleine-König committed Nov 17, 2010
1 parent 9bb39b3 commit 3bde75b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/plat-mxc/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static void mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat)
static void mx3_gpio_irq_handler(u32 irq, struct irq_desc *desc)
{
u32 irq_stat;
struct mxc_gpio_port *port = (struct mxc_gpio_port *)get_irq_data(irq);
struct mxc_gpio_port *port = get_irq_data(irq);

irq_stat = __raw_readl(port->base + GPIO_ISR) &
__raw_readl(port->base + GPIO_IMR);
Expand All @@ -188,7 +188,7 @@ static void mx2_gpio_irq_handler(u32 irq, struct irq_desc *desc)
{
int i;
u32 irq_msk, irq_stat;
struct mxc_gpio_port *port = (struct mxc_gpio_port *)get_irq_data(irq);
struct mxc_gpio_port *port = get_irq_data(irq);

/* walk through all interrupt status registers */
for (i = 0; i < gpio_table_size; i++) {
Expand Down

0 comments on commit 3bde75b

Please sign in to comment.