Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295557
b: refs/heads/master
c: 7db74d5
h: refs/heads/master
i:
  295555: 3516418
v: v3
  • Loading branch information
Ilya Yanok authored and Tony Lindgren committed Mar 6, 2012
1 parent c8b8764 commit 577e6a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17e22caccfcefc3f45ab5eaafe7279ada3b3fbd6
refs/heads/master: 7db74d5e327197289f2eb83c13f8d1b565a21467
8 changes: 5 additions & 3 deletions trunk/arch/arm/mach-omap2/common-board-devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ void __init omap_ads7846_init(int bus_num, int gpio_pendown, int gpio_debounce,
gpio_set_debounce(gpio_pendown, gpio_debounce);
}

ads7846_config.gpio_pendown = gpio_pendown;

spi_bi->bus_num = bus_num;
spi_bi->irq = OMAP_GPIO_IRQ(gpio_pendown);

if (board_pdata)
if (board_pdata) {
board_pdata->gpio_pendown = gpio_pendown;
spi_bi->platform_data = board_pdata;
} else {
ads7846_config.gpio_pendown = gpio_pendown;
}

spi_register_board_info(&ads7846_spi_board_info, 1);
}
Expand Down

0 comments on commit 577e6a0

Please sign in to comment.