From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cousson, Benoit" Subject: Re: [PATCH v3 02/11] i2c: OMAP: Add DT support for i2c controller Date: Thu, 22 Dec 2011 15:01:40 +0100 Message-ID: <4EF33844.5080105@ti.com> References: <1324398444-23296-1-git-send-email-b-cousson@ti.com> <1324398444-23296-3-git-send-email-b-cousson@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Olof Johansson Cc: Kevin Hilman , tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org, Ben Dooks , linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-omap@vger.kernel.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 From mboxrd@z Thu Jan 1 00:00:00 1970 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