Skip to content

Commit

Permalink
ARM: socfpga: explicitly request exclusive reset control
Browse files Browse the repository at this point in the history
Commit a53e35d ("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 <[email protected]>
Cc: Moritz Fischer <[email protected]>
Cc: [email protected]
Signed-off-by: Philipp Zabel <[email protected]>
Acked-By: Moritz Fischer <[email protected]>
Signed-off-by: Alan Tull <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
pH5 authored and gregkh committed Aug 10, 2017
1 parent 13bf35b commit 4fd72fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/fpga/altera-hps2fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4fd72fd

Please sign in to comment.