of/sparc: convert various prom_* functions to use phandle
Rather than passing around ints everywhere, use the phandle type where appropriate for the various functions that talk to the PROM. Signed-off-by: Andres Salomon <dilinger@queued.net> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
committed by
Grant Likely
parent
4e13efc991
commit
8d1255627d
@@ -88,7 +88,7 @@ static void __init read_obp_memory(const char *property,
|
||||
struct linux_prom64_registers *regs,
|
||||
int *num_ents)
|
||||
{
|
||||
int node = prom_finddevice("/memory");
|
||||
phandle node = prom_finddevice("/memory");
|
||||
int prop_size = prom_getproplen(node, property);
|
||||
int ents, ret, i;
|
||||
|
||||
|
||||
@@ -1262,7 +1262,8 @@ extern unsigned long bootmem_init(unsigned long *pages_avail);
|
||||
|
||||
void __init srmmu_paging_init(void)
|
||||
{
|
||||
int i, cpunode;
|
||||
int i;
|
||||
phandle cpunode;
|
||||
char node_str[128];
|
||||
pgd_t *pgd;
|
||||
pmd_t *pmd;
|
||||
@@ -1398,7 +1399,8 @@ static void __init srmmu_is_bad(void)
|
||||
|
||||
static void __init init_vac_layout(void)
|
||||
{
|
||||
int nd, cache_lines;
|
||||
phandle nd;
|
||||
int cache_lines;
|
||||
char node_str[128];
|
||||
#ifdef CONFIG_SMP
|
||||
int cpu = 0;
|
||||
@@ -2082,7 +2084,7 @@ static void __init get_srmmu_type(void)
|
||||
|
||||
/* Next check for Fujitsu Swift. */
|
||||
if(psr_typ == 0 && psr_vers == 4) {
|
||||
int cpunode;
|
||||
phandle cpunode;
|
||||
char node_str[128];
|
||||
|
||||
/* Look if it is not a TurboSparc emulating Swift... */
|
||||
|
||||
@@ -420,7 +420,7 @@ volatile unsigned long __iomem *sun4c_memerr_reg = NULL;
|
||||
|
||||
void __init sun4c_probe_memerr_reg(void)
|
||||
{
|
||||
int node;
|
||||
phandle node;
|
||||
struct linux_prom_registers regs[1];
|
||||
|
||||
node = prom_getchild(prom_root_node);
|
||||
|
||||
Reference in New Issue
Block a user