diff options
Diffstat (limited to 'arch/sparc/kernel/central.c')
-rw-r--r-- | arch/sparc/kernel/central.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/central.c b/arch/sparc/kernel/central.c index 415c86d5a8da..d533f3d5d484 100644 --- a/arch/sparc/kernel/central.c +++ b/arch/sparc/kernel/central.c | |||
@@ -168,7 +168,7 @@ static int __devinit fhc_probe(struct of_device *op, | |||
168 | goto out; | 168 | goto out; |
169 | } | 169 | } |
170 | 170 | ||
171 | if (!strcmp(op->node->parent->name, "central")) | 171 | if (!strcmp(op->dev.of_node->parent->name, "central")) |
172 | p->central = true; | 172 | p->central = true; |
173 | 173 | ||
174 | p->pregs = of_ioremap(&op->resource[0], 0, | 174 | p->pregs = of_ioremap(&op->resource[0], 0, |
@@ -183,7 +183,7 @@ static int __devinit fhc_probe(struct of_device *op, | |||
183 | reg = upa_readl(p->pregs + FHC_PREGS_BSR); | 183 | reg = upa_readl(p->pregs + FHC_PREGS_BSR); |
184 | p->board_num = ((reg >> 16) & 1) | ((reg >> 12) & 0x0e); | 184 | p->board_num = ((reg >> 16) & 1) | ((reg >> 12) & 0x0e); |
185 | } else { | 185 | } else { |
186 | p->board_num = of_getintprop_default(op->node, "board#", -1); | 186 | p->board_num = of_getintprop_default(op->dev.of_node, "board#", -1); |
187 | if (p->board_num == -1) { | 187 | if (p->board_num == -1) { |
188 | printk(KERN_ERR "fhc: No board# property\n"); | 188 | printk(KERN_ERR "fhc: No board# property\n"); |
189 | goto out_unmap_pregs; | 189 | goto out_unmap_pregs; |