From: b-cousson@ti.com (Cousson, Benoit) Date: Thu, 22 Dec 2011 15:01:40 +0100 Subject: [PATCH v3 02/11] i2c: OMAP: Add DT support for i2c controller In-Reply-To: References: <1324398444-23296-1-git-send-email-b-cousson@ti.com> <1324398444-23296-3-git-send-email-b-cousson@ti.com> Message-ID: <4EF33844.5080105@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Olof, On 12/20/2011 10:24 PM, Olof Johansson wrote: > Hi, > > On Tue, Dec 20, 2011 at 8:27 AM, Benoit Cousson wrote: > >> diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c >> index a43d002..dcbc1ec 100644 >> --- a/drivers/i2c/busses/i2c-omap.c >> +++ b/drivers/i2c/busses/i2c-omap.c >> @@ -37,6 +37,8 @@ >> #include >> #include >> #include >> +#include >> +#include >> #include >> #include >> #include > [...] >> @@ -1165,6 +1195,7 @@ static struct platform_driver omap_i2c_driver = { >> .name = "omap_i2c", >> .owner = THIS_MODULE, >> .pm = OMAP_I2C_PM_OPS, >> + .of_match_table = of_match_ptr(omap_i2c_of_match), >> }, >> }; > > of_match_ptr() comes from, so you need to include that to > not break !CONFIG_OF builds. Good point, I'll fix that. Thanks, Benoit