Re: [PATCH] fix of_flat_dt_is_compatible to match the full compatible string

2010-07-24 Thread Grant Likely
On Thu, Jul 22, 2010 at 8:45 PM, Benjamin Herrenschmidt wrote: > On Thu, 2010-07-22 at 18:28 -0500, Stuart Yoder wrote: >> From: Stuart Yoder >> >> With the previous string comparison, a device tree >> compatible of "foo-bar" would match as compatible >> with a driver looking for "foo". >> >> Sig

Re: [PATCH] fix of_flat_dt_is_compatible to match the full compatible string

2010-07-22 Thread Benjamin Herrenschmidt
On Thu, 2010-07-22 at 18:28 -0500, Stuart Yoder wrote: > From: Stuart Yoder > > With the previous string comparison, a device tree > compatible of "foo-bar" would match as compatible > with a driver looking for "foo". > > Signed-off-by: Stuart Yoder Beware you are doing two changes in one here

[PATCH] fix of_flat_dt_is_compatible to match the full compatible string

2010-07-22 Thread Stuart Yoder
From: Stuart Yoder With the previous string comparison, a device tree compatible of "foo-bar" would match as compatible with a driver looking for "foo". Signed-off-by: Stuart Yoder --- drivers/of/fdt.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/of/fdt.c b