Patchwork [U-Boot] ARMv7: u8500_href: Add missing header to fix compiler warning

login
register
mail settings
Submitter Dirk Behme
Date July 10, 2011, 6:52 a.m.
Message ID <1310280737-4745-1-git-send-email-dirk.behme@gmail.com>
Download mbox | patch
Permalink /patch/104045/
State Accepted
Commit 2dd97488ee1aee3511706425853522a3fb2c8467
Delegated to: Albert ARIBAUD
Headers show

Comments

Dirk Behme - July 10, 2011, 6:52 a.m.
From: Dirk Behme <dirk.behme@googlemail.com>

Fix the compiler warning

u8500_href.c: In function 'hrefplus_mmc_power_init':
u8500_href.c:258: warning: implicit declaration of function 'prcmu_i2c_read'
u8500_href.c:265: warning: implicit declaration of function 'prcmu_i2c_write'

by adding the missing header file.

Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>

---
 board/st-ericsson/u8500/u8500_href.c |    1 +
 1 file changed, 1 insertion(+)
Albert ARIBAUD - Aug. 4, 2011, 8:57 a.m.
Hi Dirk,

On 10/07/2011 08:52, Dirk Behme wrote:
> From: Dirk Behme<dirk.behme@googlemail.com>
>
> Fix the compiler warning
>
> u8500_href.c: In function 'hrefplus_mmc_power_init':
> u8500_href.c:258: warning: implicit declaration of function 'prcmu_i2c_read'
> u8500_href.c:265: warning: implicit declaration of function 'prcmu_i2c_write'
>
> by adding the missing header file.
>
> Signed-off-by: Dirk Behme<dirk.behme@googlemail.com>
>
> ---

Applied to u-boot-arm/master, thanks!

Amicalement,

Patch

Index: u-boot.git/board/st-ericsson/u8500/u8500_href.c
===================================================================
--- u-boot.git.orig/board/st-ericsson/u8500/u8500_href.c
+++ u-boot.git/board/st-ericsson/u8500/u8500_href.c
@@ -27,6 +27,7 @@ 
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 #ifdef CONFIG_MMC
+#include "prcmu-fw.h"
 #include "../../../drivers/mmc/arm_pl180_mmci.h"
 #endif