[PATCH] i2c: tegra: Fix compile when !CONFIG_OF

Stephen Warren swarren at nvidia.com
Fri Jul 22 01:42:06 EST 2011


Grant Likely wrote at Wednesday, July 13, 2011 4:48 PM:
> On Thu, Jul 14, 2011 at 5:36 AM, Stephen Warren <swarren at nvidia.com> wrote:
> > When !CONFIG_OF, <linux/of.h> doesn't prototype of_get_property(), which
> > causes i2c-tegra.c to fail to compile. Make the references to this
> > function conditional to solve this.
> >
> > Signed-off-by: Stephen Warren <swarren at nvidia.com>
...
> Acked-by: Grant Likely <grant.likely at secretlab.ca>

Ben, please can this patch be applied in time for 3.1? Currently, the
linux-next and next-i2c tree won't compile on Tegra without CONFIG_OF
enabled.

Also, the other patch I posted titled "i2c: Tegra: Add of_match_table"
is required for Tegra I2C Device Tree support to be useful. Can that go
into 3.1 as well?

Thanks very much!

-- 
nvpublic



More information about the devicetree-discuss mailing list