mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
[POWERPC] Fix early btext debug on PowerMac
The early btext debug wouldn't work on PowerMac when booted from BootX due to the code looking for the wrong property name. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
0302f12e1c
commit
b7a2da1199
1 changed files with 3 additions and 1 deletions
|
@ -186,6 +186,8 @@ int btext_initialize(struct device_node *np)
|
|||
pitch = *prop;
|
||||
if (pitch == 1)
|
||||
pitch = 0x1000;
|
||||
prop = of_get_property(np, "linux,bootx-addr", NULL);
|
||||
if (prop == NULL)
|
||||
prop = of_get_property(np, "address", NULL);
|
||||
if (prop)
|
||||
address = *prop;
|
||||
|
|
Loading…
Reference in a new issue