aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorCousson, Benoit <b-cousson@ti.com>2012-01-20 10:55:04 -0500
committerTony Lindgren <tony@atomide.com>2012-01-20 11:24:22 -0500
commit6c5aa407d52e9e40c2e31a3dfa5cb19a9672bf36 (patch)
tree458bb293dc99fd7623dad6891054f4a74fca5633 /drivers/i2c
parentdcd6c92267155e70a94b3927bce681ce74b80d1f (diff)
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-omap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index f713eac55047..801df6000e9b 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -1018,7 +1018,7 @@ omap_i2c_probe(struct platform_device *pdev)
1018 goto err_release_region; 1018 goto err_release_region;
1019 } 1019 }
1020 1020
1021 match = of_match_device(omap_i2c_of_match, &pdev->dev); 1021 match = of_match_device(of_match_ptr(omap_i2c_of_match), &pdev->dev);
1022 if (match) { 1022 if (match) {
1023 u32 freq = 100000; /* default to 100000 Hz */ 1023 u32 freq = 100000; /* default to 100000 Hz */
1024 1024