Skip to content

Commit 0f0a8fa

Browse files
vdsaoherbertx
authored andcommitted
crypto: crypto4xx - Fix build breakage
Fixes build error caused by the OF device_node pointer being moved into struct device Signed-off-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent c9aa55e commit 0f0a8fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/crypto/amcc/crypto4xx_core.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ static int __init crypto4xx_probe(struct of_device *ofdev,
11581158
struct device *dev = &ofdev->dev;
11591159
struct crypto4xx_core_device *core_dev;
11601160

1161-
rc = of_address_to_resource(ofdev->node, 0, &res);
1161+
rc = of_address_to_resource(ofdev->dev.of_node, 0, &res);
11621162
if (rc)
11631163
return -ENODEV;
11641164

@@ -1215,13 +1215,13 @@ static int __init crypto4xx_probe(struct of_device *ofdev,
12151215
(unsigned long) dev);
12161216

12171217
/* Register for Crypto isr, Crypto Engine IRQ */
1218-
core_dev->irq = irq_of_parse_and_map(ofdev->node, 0);
1218+
core_dev->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0);
12191219
rc = request_irq(core_dev->irq, crypto4xx_ce_interrupt_handler, 0,
12201220
core_dev->dev->name, dev);
12211221
if (rc)
12221222
goto err_request_irq;
12231223

1224-
core_dev->dev->ce_base = of_iomap(ofdev->node, 0);
1224+
core_dev->dev->ce_base = of_iomap(ofdev->dev.of_node, 0);
12251225
if (!core_dev->dev->ce_base) {
12261226
dev_err(dev, "failed to of_iomap\n");
12271227
goto err_iomap;

0 commit comments

Comments
 (0)