From: Dirk Behme Date: Thu, 22 Sep 2011 13:53:22 +0200 Subject: [U-Boot] [PATCH] OMAP3: beagle: Fix build warning in beagle.c Message-ID: <1316692402-24125-1-git-send-email-dirk.behme@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Dirk Behme Fix build warning beagle.c:532: warning: initialization from incompatible pointer type Signed-off-by: Dirk Behme CC: Jason Kridner CC: Koen Kooi CC: Joel A Fernandes Cc: Greg Turner CC: Sandeep Paulraj --- 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;