Commit 8e842f02 authored by Claudiu Beznea's avatar Claudiu Beznea Committed by Nicolas Ferre
Browse files

clk: at91: clk-master: remove dead code



Commit facb87ad ("clk: at91: sama7g5: remove prescaler part of master
clock") removed the master clock's prescaler from clock tree of SAMA7G5
as it has been discovered that there is a hardware bug when trying to
change it at run-time (bug is described in description of
commit facb87ad ("clk: at91: sama7g5: remove prescaler part of master
clock")). This was previously changed at CPUFreq driver request. Thus, with
commit facb87ad ("clk: at91: sama7g5: remove prescaler part of master
clock") there is no need of code that handles run-time changes of master
clock's prescaler, thus remove this code.

Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20220203110202.18329-1-claudiu.beznea@microchip.com
parent 1a944729
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -143,8 +143,7 @@ static void __init at91rm9200_pmc_setup(struct device_node *np)
					   parent_names,
					   &at91rm9200_master_layout,
					   &rm9200_mck_characteristics,
					   &rm9200_mck_lock, CLK_SET_RATE_GATE,
					   INT_MIN);
					   &rm9200_mck_lock);
	if (IS_ERR(hw))
		goto err_free;

+1 −2
Original line number Diff line number Diff line
@@ -419,8 +419,7 @@ static void __init at91sam926x_pmc_setup(struct device_node *np,
					   parent_names,
					   &at91rm9200_master_layout,
					   data->mck_characteristics,
					   &at91sam9260_mck_lock,
					   CLK_SET_RATE_GATE, INT_MIN);
					   &at91sam9260_mck_lock);
	if (IS_ERR(hw))
		goto err_free;

+1 −2
Original line number Diff line number Diff line
@@ -154,8 +154,7 @@ static void __init at91sam9g45_pmc_setup(struct device_node *np)
					   parent_names,
					   &at91rm9200_master_layout,
					   &mck_characteristics,
					   &at91sam9g45_mck_lock,
					   CLK_SET_RATE_GATE, INT_MIN);
					   &at91sam9g45_mck_lock);
	if (IS_ERR(hw))
		goto err_free;

+1 −2
Original line number Diff line number Diff line
@@ -181,8 +181,7 @@ static void __init at91sam9n12_pmc_setup(struct device_node *np)
					   parent_names,
					   &at91sam9x5_master_layout,
					   &mck_characteristics,
					   &at91sam9n12_mck_lock,
					   CLK_SET_RATE_GATE, INT_MIN);
					   &at91sam9n12_mck_lock);
	if (IS_ERR(hw))
		goto err_free;

+1 −2
Original line number Diff line number Diff line
@@ -123,8 +123,7 @@ static void __init at91sam9rl_pmc_setup(struct device_node *np)
					   parent_names,
					   &at91rm9200_master_layout,
					   &sam9rl_mck_characteristics,
					   &sam9rl_mck_lock, CLK_SET_RATE_GATE,
					   INT_MIN);
					   &sam9rl_mck_lock);
	if (IS_ERR(hw))
		goto err_free;

Loading