Skip to content

Commit e9d1a0a

Browse files
tititiou36wsakernel
authored andcommitted
i2c: mux: demux-pinctrl: Fix an error handling path in 'i2c_demux_pinctrl_probe()'
A call to 'i2c_demux_deactivate_master()' is missing in the error handling path, as already done in the remove function. Fixes: 50a5ba8 ("i2c: mux: demux-pinctrl: add driver") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 5d4c797 commit e9d1a0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/muxes/i2c-demux-pinctrl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ static int i2c_demux_pinctrl_probe(struct platform_device *pdev)
272272
err_rollback_available:
273273
device_remove_file(&pdev->dev, &dev_attr_available_masters);
274274
err_rollback:
275+
i2c_demux_deactivate_master(priv);
275276
for (j = 0; j < i; j++) {
276277
of_node_put(priv->chan[j].parent_np);
277278
of_changeset_destroy(&priv->chan[j].chgset);

0 commit comments

Comments
 (0)