Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 115d826f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "pinctrl: Fix the return value for devices without default state"

parents 9450f950 60809174
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -199,8 +199,13 @@ int pinctrl_dt_to_map(struct pinctrl *p)
		propname = kasprintf(GFP_KERNEL, "pinctrl-%d", state);
		prop = of_find_property(np, propname, &size);
		kfree(propname);
		if (!prop)
		if (!prop) {
			if (!state) {
				ret = -EINVAL;
				goto err;
			}
			break;
		}
		list = prop->value;
		size /= sizeof(*list);