diff mbox series

[U-Boot,4/4] mpc83xx: remove unused clock.h

Message ID 20191112112839.10960-5-yangbo.lu@nxp.com
State Accepted
Commit 1eaffca076543addf86fc91778a0c9b9c7fcf3df
Delegated to: Peng Fan
Headers show
Series Drop redundant code for eSDHC clock getting | expand

Commit Message

Yangbo Lu Nov. 12, 2019, 11:28 a.m. UTC
The clock.h was to define mxc_get_clock() providing clock value
to fsl_esdhc driver. Since fsl_esdhc driver is using global data
gd->arch.sdhc_clk directly now, we can remove this file.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
---
 arch/powerpc/include/asm/arch-mpc83xx/clock.h | 22 ----------------------
 1 file changed, 22 deletions(-)
 delete mode 100644 arch/powerpc/include/asm/arch-mpc83xx/clock.h

Comments

Priyanka Jain Nov. 19, 2019, 6:32 a.m. UTC | #1
>-----Original Message-----
>From: Yangbo Lu <yangbo.lu@nxp.com>
>Sent: Tuesday, November 12, 2019 4:59 PM
>To: u-boot@lists.denx.de
>Cc: Peng Fan <peng.fan@nxp.com>; Feng Li <feng.li_2@nxp.com>; Alison Wang
><alison.wang@nxp.com>; Sumit Garg <sumit.garg@nxp.com>; Priyanka Jain
><priyanka.jain@nxp.com>; Mario Six <mario.six@gdsys.cc>; Y.b. Lu
><yangbo.lu@nxp.com>
>Subject: [PATCH 4/4] mpc83xx: remove unused clock.h
>
>The clock.h was to define mxc_get_clock() providing clock value to fsl_esdhc
>driver. Since fsl_esdhc driver is using global data
>gd->arch.sdhc_clk directly now, we can remove this file.
>
>Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
>---
> arch/powerpc/include/asm/arch-mpc83xx/clock.h | 22 ----------------------
> 1 file changed, 22 deletions(-)
> delete mode 100644 arch/powerpc/include/asm/arch-mpc83xx/clock.h
>
>diff --git a/arch/powerpc/include/asm/arch-mpc83xx/clock.h
>b/arch/powerpc/include/asm/arch-mpc83xx/clock.h
>deleted file mode 100644
>index d57e93c..0000000
>--- a/arch/powerpc/include/asm/arch-mpc83xx/clock.h
>+++ /dev/null
>@@ -1,22 +0,0 @@
>-/*
>- * (C) Copyright 2018
>- * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
>- *
>- * SPDX-License-Identifier:	GPL-2.0+
>- */
>-
>-#ifndef __ASM_POWERPC_CLOCK_H
>-#define __ASM_POWERPC_CLOCK_H
>-
>-/* Make fsl_esdhc driver happy */
>-enum mxc_clock {
>-	MXC_ESDHC_CLK,
>-};
>-
>-DECLARE_GLOBAL_DATA_PTR;
>-
>-uint mxc_get_clock(int clk)
>-{
>-	return gd->arch.sdhc_clk;
>-}
>-#endif /* __ASM_POWERPC_CLOCK_H */
>--
>2.7.4
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
diff mbox series

Patch

diff --git a/arch/powerpc/include/asm/arch-mpc83xx/clock.h b/arch/powerpc/include/asm/arch-mpc83xx/clock.h
deleted file mode 100644
index d57e93c..0000000
--- a/arch/powerpc/include/asm/arch-mpc83xx/clock.h
+++ /dev/null
@@ -1,22 +0,0 @@ 
-/*
- * (C) Copyright 2018
- * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
- *
- * SPDX-License-Identifier:	GPL-2.0+
- */
-
-#ifndef __ASM_POWERPC_CLOCK_H
-#define __ASM_POWERPC_CLOCK_H
-
-/* Make fsl_esdhc driver happy */
-enum mxc_clock {
-	MXC_ESDHC_CLK,
-};
-
-DECLARE_GLOBAL_DATA_PTR;
-
-uint mxc_get_clock(int clk)
-{
-	return gd->arch.sdhc_clk;
-}
-#endif /* __ASM_POWERPC_CLOCK_H */