Commit adf4e289 authored by Gregory CLEMENT's avatar Gregory CLEMENT Committed by Stephen Boyd

clk: mvebu: armada-37xx-periph: cosmetic changes

This patches fixes few cosmetic issues such as alignment, blank lines
and required space.
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 4fbd8d19
...@@ -79,6 +79,7 @@ static const struct clk_div_table clk_table2[] = { ...@@ -79,6 +79,7 @@ static const struct clk_div_table clk_table2[] = {
{ .val = 1, .div = 4, }, { .val = 1, .div = 4, },
{ .val = 0, .div = 0, }, /* last entry */ { .val = 0, .div = 0, }, /* last entry */
}; };
static const struct clk_ops clk_double_div_ops; static const struct clk_ops clk_double_div_ops;
#define PERIPH_GATE(_name, _bit) \ #define PERIPH_GATE(_name, _bit) \
...@@ -217,7 +218,7 @@ PERIPH_CLK_FULL(counter, 23, 20, DIV_SEL0, 23, clk_table6); ...@@ -217,7 +218,7 @@ PERIPH_CLK_FULL(counter, 23, 20, DIV_SEL0, 23, clk_table6);
PERIPH_CLK_FULL_DD(eip97, 24, 24, DIV_SEL2, DIV_SEL2, 22, 19); PERIPH_CLK_FULL_DD(eip97, 24, 24, DIV_SEL2, DIV_SEL2, 22, 19);
PERIPH_CLK_MUX_DIV(cpu, 22, DIV_SEL0, 28, clk_table6); PERIPH_CLK_MUX_DIV(cpu, 22, DIV_SEL0, 28, clk_table6);
static struct clk_periph_data data_nb[] ={ static struct clk_periph_data data_nb[] = {
REF_CLK_FULL_DD(mmc), REF_CLK_FULL_DD(mmc),
REF_CLK_FULL_DD(sata_host), REF_CLK_FULL_DD(sata_host),
REF_CLK_FULL_DD(sec_at), REF_CLK_FULL_DD(sec_at),
...@@ -281,7 +282,7 @@ static unsigned int get_div(void __iomem *reg, int shift) ...@@ -281,7 +282,7 @@ static unsigned int get_div(void __iomem *reg, int shift)
} }
static unsigned long clk_double_div_recalc_rate(struct clk_hw *hw, static unsigned long clk_double_div_recalc_rate(struct clk_hw *hw,
unsigned long parent_rate) unsigned long parent_rate)
{ {
struct clk_double_div *double_div = to_clk_double_div(hw); struct clk_double_div *double_div = to_clk_double_div(hw);
unsigned int div; unsigned int div;
...@@ -303,6 +304,7 @@ static const struct of_device_id armada_3700_periph_clock_of_match[] = { ...@@ -303,6 +304,7 @@ static const struct of_device_id armada_3700_periph_clock_of_match[] = {
.data = data_sb, }, .data = data_sb, },
{ } { }
}; };
static int armada_3700_add_composite_clk(const struct clk_periph_data *data, static int armada_3700_add_composite_clk(const struct clk_periph_data *data,
void __iomem *reg, spinlock_t *lock, void __iomem *reg, spinlock_t *lock,
struct device *dev, struct clk_hw **hw) struct device *dev, struct clk_hw **hw)
...@@ -355,9 +357,9 @@ static int armada_3700_add_composite_clk(const struct clk_periph_data *data, ...@@ -355,9 +357,9 @@ static int armada_3700_add_composite_clk(const struct clk_periph_data *data,
} }
*hw = clk_hw_register_composite(dev, data->name, data->parent_names, *hw = clk_hw_register_composite(dev, data->name, data->parent_names,
data->num_parents, mux_hw, data->num_parents, mux_hw,
mux_ops, rate_hw, rate_ops, mux_ops, rate_hw, rate_ops,
gate_hw, gate_ops, CLK_IGNORE_UNUSED); gate_hw, gate_ops, CLK_IGNORE_UNUSED);
if (IS_ERR(*hw)) if (IS_ERR(*hw))
return PTR_ERR(*hw); return PTR_ERR(*hw);
...@@ -406,12 +408,11 @@ static int armada_3700_periph_clock_probe(struct platform_device *pdev) ...@@ -406,12 +408,11 @@ static int armada_3700_periph_clock_probe(struct platform_device *pdev)
if (armada_3700_add_composite_clk(&data[i], reg, if (armada_3700_add_composite_clk(&data[i], reg,
&driver_data->lock, dev, hw)) &driver_data->lock, dev, hw))
dev_err(dev, "Can't register periph clock %s\n", dev_err(dev, "Can't register periph clock %s\n",
data[i].name); data[i].name);
} }
ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get,
driver_data->hw_data); driver_data->hw_data);
if (ret) { if (ret) {
for (i = 0; i < num_periph; i++) for (i = 0; i < num_periph; i++)
clk_hw_unregister(driver_data->hw_data->hws[i]); clk_hw_unregister(driver_data->hw_data->hws[i]);
......
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