From: Philipp Zabel Date: Wed, 2 Aug 2017 02:20:52 +0000 (-0500) Subject: ARM: socfpga: explicitly request exclusive reset control X-Git-Tag: v4.14-rc1~146^2~149 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fd72fd29d4a90d9117038f4e15e4073aeb3bf7f;p=platform%2Fkernel%2Flinux-rpi.git ARM: socfpga: explicitly request exclusive reset control Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting reset lines") started to transition the reset control request API calls to explicitly state whether the driver needs exclusive or shared reset control behavior. Convert all drivers requesting exclusive resets to the explicit API call so the temporary transition helpers can be removed. No functional changes. Cc: Alan Tull Cc: Moritz Fischer Cc: linux-fpga@vger.kernel.org Signed-off-by: Philipp Zabel Acked-By: Moritz Fischer Signed-off-by: Alan Tull Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/fpga/altera-hps2fpga.c b/drivers/fpga/altera-hps2fpga.c index 3066b80..a18ff43 100644 --- a/drivers/fpga/altera-hps2fpga.c +++ b/drivers/fpga/altera-hps2fpga.c @@ -145,7 +145,8 @@ static int alt_fpga_bridge_probe(struct platform_device *pdev) of_id = of_match_device(altera_fpga_of_match, dev); priv = (struct altera_hps2fpga_data *)of_id->data; - priv->bridge_reset = of_reset_control_get_by_index(dev->of_node, 0); + priv->bridge_reset = of_reset_control_get_exclusive_by_index(dev->of_node, + 0); if (IS_ERR(priv->bridge_reset)) { dev_err(dev, "Could not get %s reset control\n", priv->name); return PTR_ERR(priv->bridge_reset);