diff mbox

[U-Boot,1/3] mmc: dw_mmc: remove the duplicated header file

Message ID 1468913616-29414-1-git-send-email-jh80.chung@samsung.com
State Accepted
Commit ccd60a8524aa364e6f3c06e4526f2ddd61f1cf25
Delegated to: Jaehoon Chung
Headers show

Commit Message

Jaehoon Chung July 19, 2016, 7:33 a.m. UTC
<asm-generic/errno.h> is already included in <errno.h>.
It can use <errno.h> instead of <asm-generic/errno.h>

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 drivers/mmc/dw_mmc.c        | 1 -
 drivers/mmc/exynos_dw_mmc.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

Comments

Simon Glass July 23, 2016, 2:57 a.m. UTC | #1
On 19 July 2016 at 01:33, Jaehoon Chung <jh80.chung@samsung.com> wrote:
> <asm-generic/errno.h> is already included in <errno.h>.
> It can use <errno.h> instead of <asm-generic/errno.h>
>
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> ---
>  drivers/mmc/dw_mmc.c        | 1 -
>  drivers/mmc/exynos_dw_mmc.c | 2 +-
>  2 files changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Jaehoon Chung Aug. 5, 2016, 2:25 a.m. UTC | #2
On 07/19/2016 04:33 PM, Jaehoon Chung wrote:
> <asm-generic/errno.h> is already included in <errno.h>.
> It can use <errno.h> instead of <asm-generic/errno.h>
> 
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied on u-boot-mmc. Thanks!

Best Regards,
Jaehoon Chung


> ---
>  drivers/mmc/dw_mmc.c        | 1 -
>  drivers/mmc/exynos_dw_mmc.c | 2 +-
>  2 files changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c
> index 2cf7bae..8687368 100644
> --- a/drivers/mmc/dw_mmc.c
> +++ b/drivers/mmc/dw_mmc.c
> @@ -13,7 +13,6 @@
>  #include <memalign.h>
>  #include <mmc.h>
>  #include <dwmmc.h>
> -#include <asm-generic/errno.h>
>  
>  #define PAGE_SIZE 4096
>  
> diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c
> index 283befc..57271f1 100644
> --- a/drivers/mmc/exynos_dw_mmc.c
> +++ b/drivers/mmc/exynos_dw_mmc.c
> @@ -10,12 +10,12 @@
>  #include <fdtdec.h>
>  #include <libfdt.h>
>  #include <malloc.h>
> +#include <errno.h>
>  #include <asm/arch/dwmmc.h>
>  #include <asm/arch/clk.h>
>  #include <asm/arch/pinmux.h>
>  #include <asm/arch/power.h>
>  #include <asm/gpio.h>
> -#include <asm-generic/errno.h>
>  
>  #define	DWMMC_MAX_CH_NUM		4
>  #define	DWMMC_MAX_FREQ			52000000
>
diff mbox

Patch

diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c
index 2cf7bae..8687368 100644
--- a/drivers/mmc/dw_mmc.c
+++ b/drivers/mmc/dw_mmc.c
@@ -13,7 +13,6 @@ 
 #include <memalign.h>
 #include <mmc.h>
 #include <dwmmc.h>
-#include <asm-generic/errno.h>
 
 #define PAGE_SIZE 4096
 
diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c
index 283befc..57271f1 100644
--- a/drivers/mmc/exynos_dw_mmc.c
+++ b/drivers/mmc/exynos_dw_mmc.c
@@ -10,12 +10,12 @@ 
 #include <fdtdec.h>
 #include <libfdt.h>
 #include <malloc.h>
+#include <errno.h>
 #include <asm/arch/dwmmc.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/power.h>
 #include <asm/gpio.h>
-#include <asm-generic/errno.h>
 
 #define	DWMMC_MAX_CH_NUM		4
 #define	DWMMC_MAX_FREQ			52000000