mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-03 02:03:01 +00:00
83xx: mpc8315erdb: fix silly thinko in fdt_tsec1_fixup
The thinko was quite silly indeed, I messed with !ptr. Normally this would trigger some fault, but in U-Boot NULL pointer is equal to phys 0, so the code was working still, just didn't actually test mpc8315erdb environment variable value. Heh. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
This commit is contained in:
parent
25f5f0d49a
commit
021f6df6e9
1 changed files with 10 additions and 9 deletions
|
@ -128,7 +128,9 @@ void fdt_tsec1_fixup(void *fdt, bd_t *bd)
|
||||||
const char *path;
|
const char *path;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!mpc8315erdb) {
|
if (!mpc8315erdb)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!strcmp(mpc8315erdb, "tsec1")) {
|
if (!strcmp(mpc8315erdb, "tsec1")) {
|
||||||
return;
|
return;
|
||||||
} else if (strcmp(mpc8315erdb, "ulpi")) {
|
} else if (strcmp(mpc8315erdb, "ulpi")) {
|
||||||
|
@ -137,7 +139,6 @@ void fdt_tsec1_fixup(void *fdt, bd_t *bd)
|
||||||
"or `tsec1'.\n", mpc8315erdb);
|
"or `tsec1'.\n", mpc8315erdb);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ret = fdt_path_offset(fdt, "/aliases");
|
ret = fdt_path_offset(fdt, "/aliases");
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue