projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f809b4
)
c6x: convert fdt pointers to opaque pointers
author
Rob Herring
<
[email protected]
>
Mon, 31 Mar 2014 20:09:34 +0000
(15:09 -0500)
committer
Rob Herring
<
[email protected]
>
Wed, 30 Apr 2014 05:59:12 +0000
(
00:59
-0500)
The architecture code does not need to access the internals of the FDT
blob, so make the pointer to it void *.
Signed-off-by: Rob Herring <
[email protected]
>
Cc: Mark Salter <
[email protected]
>
Cc: Aurelien Jacquiot <
[email protected]
>
Cc:
[email protected]
Tested-by: Grant Likely <
[email protected]
>
arch/c6x/kernel/setup.c
patch
|
blob
|
history
diff --git
a/arch/c6x/kernel/setup.c
b/arch/c6x/kernel/setup.c
index 731db4b9014dfab53eb50083a9a82dbabc8541ef..757128868d4324133c2ee0201d54fa40908b76f1 100644
(file)
--- a/
arch/c6x/kernel/setup.c
+++ b/
arch/c6x/kernel/setup.c
@@
-265,8
+265,8
@@
int __init c6x_add_memory(phys_addr_t start, unsigned long size)
*/
notrace void __init machine_init(unsigned long dt_ptr)
{
-
struct boot_param_header
*dtb = __va(dt_ptr);
-
struct boot_param_header *fdt = (struct boot_param_header *)
_fdt_start;
+
const void
*dtb = __va(dt_ptr);
+
const void *fdt =
_fdt_start;
/* interrupts must be masked */
set_creg(IER, 2);