diff options
author | Wolfgang Denk <wd@denx.de> | 2011-04-30 23:29:55 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-04-30 23:29:55 +0200 |
commit | 96d04c3150ae9284500aef48803d7d132968f2b2 (patch) | |
tree | 4923657591fd5a97e0acd72930daadb9aa8f25e2 /include/ide.h | |
parent | a621b167baa62871f6b1b10020c230905a8f832c (diff) | |
download | u-boot-96d04c3150ae9284500aef48803d7d132968f2b2.zip u-boot-96d04c3150ae9284500aef48803d7d132968f2b2.tar.gz u-boot-96d04c3150ae9284500aef48803d7d132968f2b2.tar.bz2 |
IDE: fix compiler warnings
The changes introduced by commit 0abddf8 ``cmd_ide: enhance new
feature "CONFIG_IDE_AHB"'' caused compiler warnings like
cmd_ide.c: In function 'ide_init':
cmd_ide.c:716: warning: assignment from incompatible pointer type
Constify the respective function arguments to fix this.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include/ide.h')
-rw-r--r-- | include/ide.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ide.h b/include/ide.h index 80a10f4..8ecc9dd 100644 --- a/include/ide.h +++ b/include/ide.h @@ -52,7 +52,7 @@ typedef ulong lbaint_t; void ide_init(void); ulong ide_read(int device, lbaint_t blknr, ulong blkcnt, void *buffer); -ulong ide_write(int device, lbaint_t blknr, ulong blkcnt, void *buffer); +ulong ide_write(int device, lbaint_t blknr, ulong blkcnt, const void *buffer); #if defined(CONFIG_OF_IDE_FIXUP) int ide_device_present(int dev); |