Skip to content

Commit

Permalink
[PATCH] Fix broken IXP4xx GPIO macro
Browse files Browse the repository at this point in the history
Macro ended up backwards during one of cleanups. Found by Alessandro Zummo.

Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Deepak Saxena authored and Linus Torvalds committed Oct 4, 2005
1 parent 50165d8 commit ce12467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-arm/arch-ixp4xx/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ extern struct pci_bus *ixp4xx_scan_bus(int nr, struct pci_sys_data *sys);

static inline void gpio_line_config(u8 line, u32 direction)
{
if (direction == IXP4XX_GPIO_OUT)
if (direction == IXP4XX_GPIO_IN)
*IXP4XX_GPIO_GPOER |= (1 << line);
else
*IXP4XX_GPIO_GPOER &= ~(1 << line);
Expand Down

0 comments on commit ce12467

Please sign in to comment.