diff mbox

[U-Boot,2/2] rockchip: clk: rk3399: remove unused fields from priv-structures

Message ID 1499798984-23044-2-git-send-email-philipp.tomsich@theobroma-systems.com
State Accepted
Commit 01106571adfdf7662188b0f264e6bc472d7f84d2
Delegated to: Philipp Tomsich
Headers show

Commit Message

Philipp Tomsich July 11, 2017, 6:49 p.m. UTC
This removes the unused 'rate' field from both rk3399_pmuclk_priv and
rk3399_clk_priv. I didn't bother to check where this came from (i.e.
what the historical context of these was), but only verified that
these are indeed unused across all code-paths.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---

 arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 2 --
 1 file changed, 2 deletions(-)

Comments

Simon Glass July 12, 2017, 12:32 a.m. UTC | #1
On 11 July 2017 at 12:49, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> This removes the unused 'rate' field from both rk3399_pmuclk_priv and
> rk3399_clk_priv. I didn't bother to check where this came from (i.e.
> what the historical context of these was), but only verified that
> these are indeed unused across all code-paths.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
>  arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 2 --
>  1 file changed, 2 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Philipp Tomsich July 12, 2017, 10:36 a.m. UTC | #2
> This removes the unused 'rate' field from both rk3399_pmuclk_priv and
> rk3399_clk_priv. I didn't bother to check where this came from (i.e.
> what the historical context of these was), but only verified that
> these are indeed unused across all code-paths.
> 
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 2 --
>  1 file changed, 2 deletions(-)
> 

Applied to u-boot-rockchip, thanks!
diff mbox

Patch

diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
index cf830d0..033f067 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
@@ -12,12 +12,10 @@ 
 /* Private data for the clock driver - used by rockchip_get_cru() */
 struct rk3399_clk_priv {
 	struct rk3399_cru *cru;
-	ulong rate;
 };
 
 struct rk3399_pmuclk_priv {
 	struct rk3399_pmucru *pmucru;
-	ulong rate;
 };
 
 struct rk3399_pmucru {