Commit 3b0da916 authored by Stephen Boyd's avatar Stephen Boyd

Merge branch 'clk-sunxi' into clk-next

* clk-sunxi:
  clk: sunxi: explicitly request exclusive reset control
  clk: sunxi: fix build warning
parents bdf6bfb3 cb92a19b
...@@ -276,13 +276,11 @@ void sunxi_factors_unregister(struct device_node *node, struct clk *clk) ...@@ -276,13 +276,11 @@ void sunxi_factors_unregister(struct device_node *node, struct clk *clk)
{ {
struct clk_hw *hw = __clk_get_hw(clk); struct clk_hw *hw = __clk_get_hw(clk);
struct clk_factors *factors; struct clk_factors *factors;
const char *name;
if (!hw) if (!hw)
return; return;
factors = to_clk_factors(hw); factors = to_clk_factors(hw);
name = clk_hw_get_name(hw);
of_clk_del_provider(node); of_clk_del_provider(node);
/* TODO: The composite clock stuff will leak a bit here. */ /* TODO: The composite clock stuff will leak a bit here. */
......
...@@ -124,7 +124,7 @@ static int sun9i_a80_mmc_config_clk_probe(struct platform_device *pdev) ...@@ -124,7 +124,7 @@ static int sun9i_a80_mmc_config_clk_probe(struct platform_device *pdev)
return PTR_ERR(data->clk); return PTR_ERR(data->clk);
} }
data->reset = devm_reset_control_get(&pdev->dev, NULL); data->reset = devm_reset_control_get_exclusive(&pdev->dev, NULL);
if (IS_ERR(data->reset)) { if (IS_ERR(data->reset)) {
dev_err(&pdev->dev, "Could not get reset control\n"); dev_err(&pdev->dev, "Could not get reset control\n");
return PTR_ERR(data->reset); return PTR_ERR(data->reset);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment