a295fa4616bad9332ffdcd753cf219c8e49c2c61
[openwrt/openwrt.git] / target / linux / apm821xx / patches-4.14 / 120-0003-crypto-crypto4xx-fix-missing-irq-devname.patch
1 From 00179ef6e3c4e5db6258cd6e273e4063b8437d18 Mon Sep 17 00:00:00 2001
2 From: Christian Lamparter <chunkeey@gmail.com>
3 Date: Thu, 21 Dec 2017 15:10:18 +0100
4 Subject: [PATCH 3/6] crypto: crypto4xx - fix missing irq devname
5
6 crypto4xx_device's name variable is not set to anything.
7 The common devname for request_irq seems to be the module
8 name. This will fix the seemingly anonymous interrupt
9 entry in /proc/interrupts for crypto4xx.
10
11 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
12 ---
13 drivers/crypto/amcc/crypto4xx_core.c | 2 +-
14 drivers/crypto/amcc/crypto4xx_core.h | 1 -
15 2 files changed, 1 insertion(+), 2 deletions(-)
16
17 --- a/drivers/crypto/amcc/crypto4xx_core.c
18 +++ b/drivers/crypto/amcc/crypto4xx_core.c
19 @@ -1370,7 +1370,7 @@ static int crypto4xx_probe(struct platfo
20 rc = request_irq(core_dev->irq, is_revb ?
21 crypto4xx_ce_interrupt_handler_revb :
22 crypto4xx_ce_interrupt_handler, 0,
23 - core_dev->dev->name, dev);
24 + KBUILD_MODNAME, dev);
25 if (rc)
26 goto err_request_irq;
27
28 --- a/drivers/crypto/amcc/crypto4xx_core.h
29 +++ b/drivers/crypto/amcc/crypto4xx_core.h
30 @@ -82,7 +82,6 @@ struct pd_uinfo {
31
32 struct crypto4xx_device {
33 struct crypto4xx_core_device *core_dev;
34 - char *name;
35 void __iomem *ce_base;
36 void __iomem *trng_base;
37