diff mbox

[U-Boot,1/2] rockchip: clk: rk3368: remove unused fields from rk3368_clk_priv

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

Commit Message

Philipp Tomsich July 11, 2017, 6:49 p.m. UTC
The rk3368_clk_priv has two unused fields: rate, has_bwadj. This
removes them as there's no need for either (i.e. has_bwadj is always
true for the RK3368, according to its TRM).

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

 arch/arm/include/asm/arch-rockchip/cru_rk3368.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:
> The rk3368_clk_priv has two unused fields: rate, has_bwadj. This
> removes them as there's no need for either (i.e. has_bwadj is always
> true for the RK3368, according to its TRM).
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
>  arch/arm/include/asm/arch-rockchip/cru_rk3368.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
> The rk3368_clk_priv has two unused fields: rate, has_bwadj. This
> removes them as there's no need for either (i.e. has_bwadj is always
> true for the RK3368, according to its TRM).
> 
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  arch/arm/include/asm/arch-rockchip/cru_rk3368.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_rk3368.h b/arch/arm/include/asm/arch-rockchip/cru_rk3368.h
index 69af198..2b1197f 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3368.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3368.h
@@ -51,8 +51,6 @@  check_member(rk3368_cru, emmc_con[1], 0x41c);
 
 struct rk3368_clk_priv {
 	struct rk3368_cru *cru;
-	ulong rate;
-	bool has_bwadj;
 };
 
 enum {