diff options
author | Timur Tabi <timur@freescale.com> | 2008-05-15 18:04:57 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-06-02 15:44:25 -0400 |
commit | 22fb7d9be593181e2f779cf7a8421703a6be713b (patch) | |
tree | cc7cfdbb0e8140f55f146e97eae623a687804454 /arch/powerpc/sysdev | |
parent | 692d1037e6914a8a32a7a9fba416684c75c7efca (diff) |
[POWERPC] fsl: Add warning for unrecognized I2C nodes in the device tree
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>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r-- | 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 3a7054e2bb75..a38c364ea260 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, | |||
448 | return -ENOMEM; | 448 | return -ENOMEM; |
449 | return 0; | 449 | return 0; |
450 | } | 450 | } |
451 | |||
452 | pr_warning("fsl_soc.c: unrecognized i2c node %s\n", | ||
453 | (const char *) of_get_property(node, "compatible", NULL)); | ||
454 | |||
451 | return -ENODEV; | 455 | return -ENODEV; |
452 | } | 456 | } |
453 | 457 | ||