of/flattree: merge find_flat_dt_string and initial_boot_params
[firefly-linux-kernel-4.4.55.git] / arch / microblaze / kernel / prom.c
index b817df172aa95d5e0c18784231e03f2435eeafe7..06d620ab4168de8dce8dc038693ad369dfbc9f41 100644 (file)
@@ -47,17 +47,9 @@ static int __initdata dt_root_size_cells;
 
 typedef u32 cell_t;
 
-static struct boot_param_header *initial_boot_params;
-
 /* export that to outside world */
 struct device_node *of_chosen;
 
-static inline char *find_flat_dt_string(u32 offset)
-{
-       return ((char *)initial_boot_params) +
-               initial_boot_params->off_dt_strings + offset;
-}
-
 /**
  * This function is used to scan the flattened device-tree, it is
  * used to extract the memory informations at boot before we can