]> git.karo-electronics.de Git - mv-sheeva.git/commit
i2c: OMAP: Fix OMAP1 build error
authorCousson, Benoit <b-cousson@ti.com>
Fri, 20 Jan 2012 15:55:04 +0000 (16:55 +0100)
committerTony Lindgren <tony@atomide.com>
Fri, 20 Jan 2012 16:24:22 +0000 (08:24 -0800)
commit6c5aa407d52e9e40c2e31a3dfa5cb19a9672bf36
tree458bb293dc99fd7623dad6891054f4a74fca5633
parentdcd6c92267155e70a94b3927bce681ce74b80d1f
i2c: OMAP: Fix OMAP1 build error

CONFIG_OF is not defined for OMAP1 yet and thus the omap1_defconfig build
generate an error for 3.3-rc1.

drivers/i2c/busses/i2c-omap.c: In function 'omap_i2c_probe':
drivers/i2c/busses/i2c-omap.c:1021:26: error: 'omap_i2c_of_match' undeclared (first use in this function)
drivers/i2c/busses/i2c-omap.c:1021:26: note: each undeclared identifier is reported only once for each function it appears in

Wrap omap_i2c_of_match with of_match_ptr() to prevent compilation error in case of OMAP1 build.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/busses/i2c-omap.c