Skip to content

Commit

Permalink
ARM: 7034/1: mach-u300: delete irq_to_gpio() function
Browse files Browse the repository at this point in the history
This function is not used in the U300 build, and on the whole the
call is hard to consolidate so get rid of it from this machine.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Linus Walleij authored and Russell King committed Aug 22, 2011
1 parent eb3cf18 commit e9fe594
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions arch/arm/mach-u300/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,4 @@ static inline unsigned gpio_to_irq(unsigned gpio)
}
#define gpio_to_irq gpio_to_irq

static inline unsigned irq_to_gpio(unsigned irq)
{
/*
* FIXME: This is no 1-1 mapping at all, it points to the
* whole block of 8 pins.
*/
return (irq - IRQ_U300_GPIO_PORT0) << 3;
}

#endif /* __MACH_U300_GPIO_H */

0 comments on commit e9fe594

Please sign in to comment.