diff options
author | Alexey Brodkin <alexey.brodkin@gmail.com> | 2013-01-03 01:02:46 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-02-04 09:07:20 -0500 |
commit | ac1048ae1c909382190bc6c888b91325e808e0b5 (patch) | |
tree | e1e7f58d71952f99def56051c5af0bb87ebb8a54 /drivers/block/systemace.c | |
parent | cb940c7ede85994847c80f4300f2f7eac6e94c48 (diff) | |
download | u-boot-imx-ac1048ae1c909382190bc6c888b91325e808e0b5.zip u-boot-imx-ac1048ae1c909382190bc6c888b91325e808e0b5.tar.gz u-boot-imx-ac1048ae1c909382190bc6c888b91325e808e0b5.tar.bz2 |
drivers/block/systemace - fixed data type in "systemace_read" to match prototype in "block_dev_desc_t"
Currently we have "unsigned long blkcnt" which is fine with
CONFIG_SYS_64BIT_LBA undefined because "lbaint_t" is basically the same
"unsigned long".
If CONFIG_SYS_64BIT_LBA gets defined "lbaint_t" is defined as "unsigned
long long".
Even though not many embedded systems have CONFIG_SYS_64BIT_LBA defined
it's good to have types in function implementation that match exactly
with prototypes.
Signed-off-by: Alexey Brodkin <alexey.brodkin@gmail.com>
Diffstat (limited to 'drivers/block/systemace.c')
-rw-r--r-- | drivers/block/systemace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/systemace.c b/drivers/block/systemace.c index 247cf06..80076b4 100644 --- a/drivers/block/systemace.c +++ b/drivers/block/systemace.c @@ -83,7 +83,7 @@ static u16 ace_readw(unsigned off) } static unsigned long systemace_read(int dev, unsigned long start, - unsigned long blkcnt, void *buffer); + lbaint_t blkcnt, void *buffer); static block_dev_desc_t systemace_dev = { 0 }; @@ -149,7 +149,7 @@ block_dev_desc_t *systemace_get_dev(int dev) * number of blocks read. A zero return indicates an error. */ static unsigned long systemace_read(int dev, unsigned long start, - unsigned long blkcnt, void *buffer) + lbaint_t blkcnt, void *buffer) { int retry; unsigned blk_countdown; |