[U-Boot] [PATCH] OMAP3: beagle: Fix build warning in beagle.c

Jason Kridner jkridner at beagleboard.org
Thu Sep 22 14:41:16 CEST 2011


On Thu, Sep 22, 2011 at 7:53 AM, Dirk Behme <dirk.behme at googlemail.com> wrote:
> From: Dirk Behme <dirk.behme at googlemail.com>
>
> Fix build warning
>
> beagle.c:532: warning: initialization from incompatible pointer type
>
> Signed-off-by: Dirk Behme <dirk.behme at googlemail.com>
> CC: Jason Kridner <jkridner at beagleboard.org>

Acked-by: Jason Kridner <jkridner at beagleboard.org>

> CC: Koen Kooi <koen at dominion.thruhere.net>
> CC: Joel A Fernandes <agnel.joel at gmail.com>
> Cc: Greg Turner <gregturner at ti.com>
> CC: Sandeep Paulraj <s-paulraj at ti.com>
>
> ---
> Note: This seems to be introduced with the commit
>
> "BeagleBoard: Added userbutton command"
>
> http://git.denx.de/?p=u-boot.git;a=commit;h=f835ea7158025818d69384a7ebd8c3de0f10a9f7
>
>  board/ti/beagle/beagle.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: u-boot.git/board/ti/beagle/beagle.c
> ===================================================================
> --- u-boot.git.orig/board/ti/beagle/beagle.c
> +++ u-boot.git/board/ti/beagle/beagle.c
> @@ -486,7 +486,7 @@ int ehci_hcd_init(void)
>  * Returns -   1 if button is held down
>  *             0 if button is not held down
>  */
> -int do_userbutton (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
> +int do_userbutton(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
>  {
>        int     button = 0;
>        int     gpio;
>


More information about the U-Boot mailing list