* [PATCH] Add warning for unrecognized I2C nodes in the device tree
@ 2008-05-15 22:04 Timur Tabi
2008-05-30 15:51 ` Kumar Gala
0 siblings, 1 reply; 2+ messages in thread
From: Timur Tabi @ 2008-05-15 22:04 UTC (permalink / raw)
To: galak, linuxppc-dev, jochen
Update of_find_i2c_driver in fsl_soc.c to display a warning message if an
I2C node in the device tree isn't found in the i2c_devices[] array.
Signed-off-by: Timur Tabi <timur@freescale.com>
---
arch/powerpc/sysdev/fsl_soc.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c
index 3a7054e..a38c364 100644
--- a/arch/powerpc/sysdev/fsl_soc.c
+++ b/arch/powerpc/sysdev/fsl_soc.c
@@ -448,6 +448,10 @@ static int __init of_find_i2c_driver(struct device_node *node,
return -ENOMEM;
return 0;
}
+
+ pr_warning("fsl_soc.c: unrecognized i2c node %s\n",
+ (const char *) of_get_property(node, "compatible", NULL));
+
return -ENODEV;
}
--
1.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Add warning for unrecognized I2C nodes in the device tree
2008-05-15 22:04 [PATCH] Add warning for unrecognized I2C nodes in the device tree Timur Tabi
@ 2008-05-30 15:51 ` Kumar Gala
0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2008-05-30 15:51 UTC (permalink / raw)
To: Timur Tabi; +Cc: linuxppc-dev
On May 15, 2008, at 5:04 PM, Timur Tabi wrote:
> Update of_find_i2c_driver in fsl_soc.c to display a warning message
> if an
> I2C node in the device tree isn't found in the i2c_devices[] array.
>
> Signed-off-by: Timur Tabi <timur@freescale.com>
> ---
> arch/powerpc/sysdev/fsl_soc.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
applied.
- k
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-30 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-15 22:04 [PATCH] Add warning for unrecognized I2C nodes in the device tree Timur Tabi
2008-05-30 15:51 ` Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).