ide: Use CFG_64BIT_LBA instead of CFG_64BIT_STRTOUL
PATCH 1/1 ide: Use CFG_64BIT_LBA instead of CFG_64BIT_STRTOUL
This is needed for boards that define CFG_64BIT_STRTOUL but don't define CFG_64BIT_LBA.
Signed-off-by Stefan Roese <[email protected]>
--- common/cmd_ide.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
common/cmd_ide.c +2 -2
@@ -298,7 +298,7 @@ int do_ide (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])ulong addr =simple_strtoul (argv[2 ],NULL ,16 );ulong cnt =simple_strtoul (argv[4 ],NULL ,16 );ulong n; -#ifdef CFG_64BIT_STRTOUL +#ifdef CFG_64BIT_LBA lbaint_t blk =simple_strtoull (argv[3 ],NULL ,16 ); printf ("\nIDE read: device %d block # %qd, count %ld ... ",
@@ -327,7 +327,7 @@ int do_ide (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])ulong addr =simple_strtoul (argv[2 ],NULL ,16 );ulong cnt =simple_strtoul (argv[4 ],NULL ,16 );ulong n; -#ifdef CFG_64BIT_STRTOUL +#ifdef CFG_64BIT_LBA lbaint_t blk =simple_strtoull (argv[3 ],NULL ,16 ); printf ("\nIDE write: device %d block # %qd, count %ld ... ",
Signature · 1 line
1.5.6.3
Wolfgang Denk
AppliedPATCH 1/1 ide: Use CFG_64BIT_LBA instead of CFG_64BIT_STRTOUL
Quoted 7 lines · In message <[email protected]> you wrote:
This is needed for boards that define
CFG_64BIT_STRTOULbut don't defineCFG_64BIT_LBA.Signed-off-by Stefan Roese <[email protected]>--- common/cmd_ide.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de There's no future in time travel.