projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pantheon: define CONFIG_SYS_CACHELINE_SIZE
[oweals/u-boot.git]
/
disk
/
part_amiga.c
diff --git
a/disk/part_amiga.c
b/disk/part_amiga.c
index c2daf6a6008910bba7eaf23296b1ee6bf96bc663..50efe39b1b28ad6a532dfbbecfc0b36c24fbcd46 100644
(file)
--- a/
disk/part_amiga.c
+++ b/
disk/part_amiga.c
@@
-27,6
+27,7
@@
#include "part_amiga.h"
#if defined(CONFIG_CMD_IDE) || \
#include "part_amiga.h"
#if defined(CONFIG_CMD_IDE) || \
+ defined(CONFIG_CMD_MG_DISK) || \
defined(CONFIG_CMD_SCSI) || \
defined(CONFIG_CMD_USB) || \
defined(CONFIG_MMC) || \
defined(CONFIG_CMD_SCSI) || \
defined(CONFIG_CMD_USB) || \
defined(CONFIG_MMC) || \
@@
-154,7
+155,7
@@
struct rigid_disk_block *get_rdisk(block_dev_desc_t *dev_desc)
s = getenv("amiga_scanlimit");
if (s)
s = getenv("amiga_scanlimit");
if (s)
- limit =
atoi(s
);
+ limit =
simple_strtoul(s, NULL, 10
);
else
limit = AMIGA_BLOCK_LIMIT;
else
limit = AMIGA_BLOCK_LIMIT;
@@
-195,7
+196,7
@@
struct bootcode_block *get_bootcode(block_dev_desc_t *dev_desc)
s = getenv("amiga_scanlimit");
if (s)
s = getenv("amiga_scanlimit");
if (s)
- limit =
atoi(s
);
+ limit =
simple_strtoul(s, NULL, 10
);
else
limit = AMIGA_BLOCK_LIMIT;
else
limit = AMIGA_BLOCK_LIMIT;