Skip to content

Commit

Permalink
ARM: OMAP1: Define OMAP1_INT_I2C locally
Browse files Browse the repository at this point in the history
This is needed to start removing hardcoded IRQs for omap2+.

Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Tony Lindgren committed Sep 13, 2012
1 parent 9ee0731 commit 936e0f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/plat-omap/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

#define OMAP_I2C_SIZE 0x3f
#define OMAP1_I2C_BASE 0xfffb3800
#define OMAP1_INT_I2C (32 + 4)

static const char name[] = "omap_i2c";

Expand Down Expand Up @@ -105,7 +106,7 @@ static inline int omap1_i2c_add_bus(int bus_id)
res = pdev->resource;
res[0].start = OMAP1_I2C_BASE;
res[0].end = res[0].start + OMAP_I2C_SIZE;
res[1].start = INT_I2C;
res[1].start = OMAP1_INT_I2C;
pdata = &i2c_pdata[bus_id - 1];

/* all OMAP1 have IP version 1 register set */
Expand Down

0 comments on commit 936e0f2

Please sign in to comment.