From 201b0a8131dbd952b85c4731dca227eba4c8e468 Mon Sep 17 00:00:00 2001 From: Shardar Shariff Md Date: Fri, 9 Mar 2018 00:49:38 +0530 Subject: [PATCH] i2c: core: skip prod-settings node during i2c device registration skip prod-settings node during i2c device registration as prod-settings is not i2c device Change-Id: Iaeff454cf17ffd68a7273aeb8afcce6e2c8894c6 Signed-off-by: Shardar Shariff Md Signed-off-by: Bitan Biswas Signed-off-by: Krishna Yarlagadda Reviewed-by: Akhil R Reviewed-by: Laxman Dewangan Tested-by: Akhil R Signed-off-by: Abhilash G --- drivers/i2c/i2c-core-of.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/i2c/i2c-core-of.c b/drivers/i2c/i2c-core-of.c index a6c407d36800..b45903ea7253 100644 --- a/drivers/i2c/i2c-core-of.c +++ b/drivers/i2c/i2c-core-of.c @@ -98,6 +98,9 @@ void of_i2c_register_devices(struct i2c_adapter *adap) bus = of_node_get(adap->dev.of_node); for_each_available_child_of_node(bus, node) { + if (!strcmp(node->name, "prod-settings")) + continue; + if (of_node_test_and_set_flag(node, OF_POPULATED)) continue;