Skip to content

Commit

Permalink
ARM: OMAP: No need to include board-h4.h from hardware.h
Browse files Browse the repository at this point in the history
Move the defines to the associated board file and remove
the now unnecessary header file. Also rename
OMAP24XX_ETHR_GPIO_IRQ to H4_ETHR_GPIO_IRQ.

Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Tony Lindgren committed Mar 24, 2009
1 parent 7055477 commit 40662d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 43 deletions.
4 changes: 3 additions & 1 deletion arch/arm/mach-omap2/board-h4.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
#define H4_FLASH_CS 0
#define H4_SMC91X_CS 1

#define H4_ETHR_GPIO_IRQ 92

static unsigned int row_gpios[6] = { 88, 89, 124, 11, 6, 96 };
static unsigned int col_gpios[7] = { 90, 91, 100, 36, 12, 97, 98 };

Expand Down Expand Up @@ -341,7 +343,7 @@ static inline void __init h4_init_debug(void)
udelay(100);

omap_cfg_reg(M15_24XX_GPIO92);
if (debug_card_init(cs_mem_base, OMAP24XX_ETHR_GPIO_IRQ) < 0)
if (debug_card_init(cs_mem_base, H4_ETHR_GPIO_IRQ) < 0)
gpmc_cs_free(eth_cs);

out:
Expand Down
38 changes: 0 additions & 38 deletions arch/arm/plat-omap/include/mach/board-h4.h

This file was deleted.

4 changes: 0 additions & 4 deletions arch/arm/plat-omap/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,6 @@
* ---------------------------------------------------------------------------
*/

#ifdef CONFIG_MACH_OMAP_H4
#include "board-h4.h"
#endif

#ifdef CONFIG_MACH_OMAP3_BEAGLE
#include "board-omap3beagle.h"
#endif
Expand Down

0 comments on commit 40662d7

Please sign in to comment.