Commit a0c807b5 authored by Théo Lebrun's avatar Théo Lebrun Committed by Linus Walleij
Browse files

pinctrl: nomadik: fix dereference of error pointer

parent 5545d501
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1228,9 +1228,10 @@ static int nmk_pinctrl_probe(struct platform_device *pdev)
		if (IS_ERR(nmk_chip))
			dev_err(&pdev->dev,
				"could not populate nmk chip struct - continue anyway\n");
		fwnode_handle_put(gpio_fwnode);
		else
			/* We are NOT compatible with mobileye,eyeq5-gpio. */
			BUG_ON(nmk_chip->is_mobileye_soc);
		fwnode_handle_put(gpio_fwnode);
	}

	prcm_fwnode = fwnode_find_reference(fwnode, "prcm", 0);