mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
of: remove early_init_dt_setup_initrd_arch
All arches do essentially the same thing now for early_init_dt_setup_initrd_arch, so it can now be removed. Signed-off-by: Rob Herring <[email protected]> Acked-by: Vineet Gupta <[email protected]> Cc: Russell King <[email protected]> Cc: Mark Salter <[email protected]> Cc: Aurelien Jacquiot <[email protected]> Cc: James Hogan <[email protected]> Cc: Michal Simek <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Jonas Bonn <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: [email protected] Cc: Chris Zankel <[email protected]> Cc: Max Filippov <[email protected]> Acked-by: Grant Likely <[email protected]>
This commit is contained in:
parent
ec2eaa73b3
commit
29eb45a9ab
12 changed files with 10 additions and 104 deletions
|
|
@ -624,7 +624,7 @@ int __init of_scan_flat_dt_by_path(const char *path,
|
|||
* early_init_dt_check_for_initrd - Decode initrd location from flat tree
|
||||
* @node: reference to node containing initrd location ('chosen')
|
||||
*/
|
||||
void __init early_init_dt_check_for_initrd(unsigned long node)
|
||||
static void __init early_init_dt_check_for_initrd(unsigned long node)
|
||||
{
|
||||
u64 start, end;
|
||||
unsigned long len;
|
||||
|
|
@ -642,12 +642,15 @@ void __init early_init_dt_check_for_initrd(unsigned long node)
|
|||
return;
|
||||
end = of_read_number(prop, len/4);
|
||||
|
||||
early_init_dt_setup_initrd_arch(start, end);
|
||||
initrd_start = (unsigned long)__va(start);
|
||||
initrd_end = (unsigned long)__va(end);
|
||||
initrd_below_start_ok = 1;
|
||||
|
||||
pr_debug("initrd_start=0x%llx initrd_end=0x%llx\n",
|
||||
(unsigned long long)start, (unsigned long long)end);
|
||||
}
|
||||
#else
|
||||
inline void early_init_dt_check_for_initrd(unsigned long node)
|
||||
static inline void early_init_dt_check_for_initrd(unsigned long node)
|
||||
{
|
||||
}
|
||||
#endif /* CONFIG_BLK_DEV_INITRD */
|
||||
|
|
|
|||
Loading…
Reference in a new issue