Commit da58751c authored by Richard Genoud's avatar Richard Genoud Committed by Linus Walleij
Browse files

pinctrl: use dev_info instead of pr_info in pinctrl_select_state_locked



And remove superfluous brackets.

Signed-off-by: default avatarRichard Genoud <richard.genoud@gmail.com>
Reviewed-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 950707c0
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -956,17 +956,16 @@ static int pinctrl_select_state_locked(struct pinctrl *p,
			break;
		}

		if (ret < 0) {
		if (ret < 0)
			goto unapply_new_state;
	}
	}

	p->state = state;

	return 0;

unapply_new_state:
	pr_info("Error applying setting, reverse things back\n");
	dev_err(p->dev, "Error applying setting, reverse things back\n");

	/*
	 * If the loop stopped on the 1st entry, nothing has been enabled,