Refcount of of_node is increased with of_node_get() in of_i2c_register_device(). It must be decreased with of_node_put() in i2c_unregister_device(). Signed-off-by: Qi Hou <qi.hou@xxxxxxxxxxxxx> --- drivers/i2c/i2c-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 583e950..8afa0f4 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -1366,6 +1366,7 @@ void i2c_unregister_device(struct i2c_client *client) of_node_clear_flag(client->dev.of_node, OF_POPULATED); if (ACPI_COMPANION(&client->dev)) acpi_device_clear_enumerated(ACPI_COMPANION(&client->dev)); + of_node_put(client->dev.of_node); device_unregister(&client->dev); } EXPORT_SYMBOL_GPL(i2c_unregister_device); -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html