of/crypto: crypto4xx_core.c: fix build breakage
PATCH 1/1 of/crypto: crypto4xx_core.c: fix build breakage
Fixes build error caused by the OF device_node
pointer being moved into struct device
Signed-off-by Anatolij Gustschin <[email protected]>
--- drivers/crypto/amcc/crypto4xx_core.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/crypto/amcc/crypto4xx_core.c +3 -3
@@ -1158,7 +1158,7 @@ static int __init crypto4xx_probe(struct of_device *ofdev,struct device *dev = &ofdev->dev;struct crypto4xx_core_device *core_dev; - rc =of_address_to_resource (ofdev->node,0 , &res); + rc =of_address_to_resource (ofdev->dev.of_node,0 , &res);if (rc)return -ENODEV ;
@@ -1215,13 +1215,13 @@ static int __init crypto4xx_probe(struct of_device *ofdev, (unsigned long) dev);/* Register for Crypto isr, Crypto Engine IRQ */ - core_dev->irq =irq_of_parse_and_map (ofdev->node,0 ); + core_dev->irq =irq_of_parse_and_map (ofdev->dev.of_node,0 ); rc =request_irq (core_dev->irq, crypto4xx_ce_interrupt_handler,0 , core_dev->dev->name, dev);if (rc) goto err_request_irq; - core_dev->dev->ce_base =of_iomap (ofdev->node,0 ); + core_dev->dev->ce_base =of_iomap (ofdev->dev.of_node,0 );if (!core_dev->dev->ce_base) {dev_err (dev,"failed to of_iomap\n" ); goto err_iomap;
Signature · 1 line
1.7.0.4
A message that is not in the archive (sent off-list or not yet received): 1275526398-758-1-git-send-email-agust-ynQEQJNshbs@public.gmane.org
Quoted 4 lines · Anatolij Gustschin
Fixes build error caused by the OF
device_node
pointer being moved into struct deviceSigned-off-by Anatolij Gustschin <[email protected]>
Patch applied to crypto-2.6.
Thanks,
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt