Skip to content

Commit

Permalink
[POWERPC] fsl: Add warning for unrecognized I2C nodes in the device tree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Timur Tabi authored and Kumar Gala committed Jun 2, 2008
1 parent 692d103 commit 22fb7d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/sysdev/fsl_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 22fb7d9

Please sign in to comment.