summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/i2c/muxes/i2c-arb-gpio-challenge.c')
-rw-r--r--kernel/drivers/i2c/muxes/i2c-arb-gpio-challenge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/drivers/i2c/muxes/i2c-arb-gpio-challenge.c b/kernel/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
index 5cf1b60b6..402e3a6c6 100644
--- a/kernel/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
+++ b/kernel/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
@@ -196,7 +196,8 @@ static int i2c_arbitrator_probe(struct platform_device *pdev)
dev_err(dev, "Cannot parse i2c-parent\n");
return -EINVAL;
}
- arb->parent = of_find_i2c_adapter_by_node(parent_np);
+ arb->parent = of_get_i2c_adapter_by_node(parent_np);
+ of_node_put(parent_np);
if (!arb->parent) {
dev_err(dev, "Cannot find parent bus\n");
return -EPROBE_DEFER;