Skip to content

Commit

Permalink
Merge branch 'clk-sunxi' into clk-next
Browse files Browse the repository at this point in the history
* clk-sunxi:
  clk: sunxi: explicitly request exclusive reset control
  clk: sunxi: fix build warning
  • Loading branch information
bebarino committed Nov 14, 2017
2 parents bdf6bfb + cb92a19 commit 3b0da91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/clk/sunxi/clk-factors.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_factors *factors;
const char *name;

if (!hw)
return;

factors = to_clk_factors(hw);
name = clk_hw_get_name(hw);

of_clk_del_provider(node);
/* TODO: The composite clock stuff will leak a bit here. */
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/sunxi/clk-sun9i-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static int sun9i_a80_mmc_config_clk_probe(struct platform_device *pdev)
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)) {
dev_err(&pdev->dev, "Could not get reset control\n");
return PTR_ERR(data->reset);
Expand Down

0 comments on commit 3b0da91

Please sign in to comment.