提交 22fb7d9b 编写于 作者: T Timur Tabi 提交者: Kumar Gala

[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: NTimur Tabi <timur@freescale.com>
Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
上级 692d1037
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册