Commit ca89f733 authored by Wolfram Sang's avatar Wolfram Sang
Browse files

i2c: mux: demux-pinctrl: check initial mux selection, too



When misconfigured, the initial setup of the current mux channel can
fail, too. It must be checked as well.

Fixes: 50a5ba87 ("i2c: mux: demux-pinctrl: add driver")
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
parent cefc479c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -261,7 +261,9 @@ static int i2c_demux_pinctrl_probe(struct platform_device *pdev)
	pm_runtime_no_callbacks(&pdev->dev);

	/* switch to first parent as active master */
	i2c_demux_activate_master(priv, 0);
	err = i2c_demux_activate_master(priv, 0);
	if (err)
		goto err_rollback;

	err = device_create_file(&pdev->dev, &dev_attr_available_masters);
	if (err)