crypto: crypto4xx - fix missing irq devname
authorChristian Lamparter <chunkeey@gmail.com>
Fri, 22 Dec 2017 20:18:37 +0000 (21:18 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 5 Jan 2018 07:43:04 +0000 (18:43 +1100)
crypto4xx_device's name variable is not set to anything.
The common devname for request_irq seems to be the module
name. This will fix the seemingly anonymous interrupt
entry in /proc/interrupts for crypto4xx.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/amcc/crypto4xx_core.c
drivers/crypto/amcc/crypto4xx_core.h

index fde0136029f1b54b770a6e94738e6cb210cc82a8..4b03318775ac10d25c9c059f822efb326892ea77 100644 (file)
@@ -1370,7 +1370,7 @@ static int crypto4xx_probe(struct platform_device *ofdev)
        rc = request_irq(core_dev->irq, is_revb ?
                         crypto4xx_ce_interrupt_handler_revb :
                         crypto4xx_ce_interrupt_handler, 0,
-                        core_dev->dev->name, dev);
+                        KBUILD_MODNAME, dev);
        if (rc)
                goto err_request_irq;
 
index 013d9992a44ed5a245b3a5a8e532ef17b6fc9bfc..61a02a4c57943a8ea39b0ec707773d36c79a6060 100644 (file)
@@ -82,7 +82,6 @@ struct pd_uinfo {
 
 struct crypto4xx_device {
        struct crypto4xx_core_device *core_dev;
-       char *name;
        void __iomem *ce_base;
        void __iomem *trng_base;