Skip to content

Commit 19e4875

Browse files
committed
of/sparc: fix build regression from of_device changes
Commit id 1636f8a (sparc/of: Move of_device fields into struct pdev_archdata) missed fixing up the n2_core.c and greth.c drivers. This patch makes the required changes. Reported-by: David S. Miller <davem@davemloft.net> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
1 parent 2dc1158 commit 19e4875

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/crypto/n2_core.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ static int find_devino_index(struct platform_device *dev, struct spu_mdesc_info
15801580
if (!dev_intrs)
15811581
return -ENODEV;
15821582

1583-
for (i = 0; i < dev->num_irqs; i++) {
1583+
for (i = 0; i < dev->archdata.num_irqs; i++) {
15841584
if (dev_intrs[i] == intr)
15851585
return i;
15861586
}
@@ -1603,7 +1603,7 @@ static int spu_map_ino(struct platform_device *dev, struct spu_mdesc_info *ip,
16031603
if (index < 0)
16041604
return index;
16051605

1606-
p->irq = dev->irqs[index];
1606+
p->irq = dev->archdata.irqs[index];
16071607

16081608
sprintf(p->irq_name, "%s-%d", irq_name, index);
16091609

‎drivers/net/greth.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ static int __devinit greth_of_probe(struct platform_device *ofdev, const struct
14121412
}
14131413

14141414
regs = (struct greth_regs *) greth->regs;
1415-
greth->irq = ofdev->irqs[0];
1415+
greth->irq = ofdev->archdata.irqs[0];
14161416

14171417
dev_set_drvdata(greth->dev, dev);
14181418
SET_NETDEV_DEV(dev, greth->dev);

0 commit comments

Comments
 (0)