RE: [PATCH] i2c: tegra: Fix compile when !CONFIG_OF
From: Stephen Warren <hidden>
Date: 2011-08-01 04:05:56
Also in:
linux-i2c, linux-tegra
From: Stephen Warren <hidden>
Date: 2011-08-01 04:05:56
Also in:
linux-i2c, linux-tegra
Stephen Warren wrote at Thursday, July 21, 2011 9:42 AM:
Grant Likely wrote at Wednesday, July 13, 2011 4:48 PM:quoted
On Thu, Jul 14, 2011 at 5:36 AM, Stephen Warren [off-list ref] wrote:quoted
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 <redacted>...quoted
Acked-by: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>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.
Ben, can this patch please be pushed for 3.1 to solve the compile problem?
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?
Ben, can this patch please go into 3.1, since it's logically a missing part of a patch that's already in 3.1, but got applied too early? Thanks. -- nvpublic