d5e1a056eaf8e5d79b59302981ed8a2c3fe3fc75
[oweals/openwrt.git] / target / linux / apm821xx / patches-4.14 / 021-0004-crypto-crypto4xx-kill-MODULE_NAME.patch
1 From c3621f23fed7d6fff33083ae538004ea59c01d8f Mon Sep 17 00:00:00 2001
2 From: Christian Lamparter <chunkeey@gmail.com>
3 Date: Thu, 21 Dec 2017 15:11:18 +0100
4 Subject: [PATCH 4/6] crypto: crypto4xx - kill MODULE_NAME
5
6 KBUILD_MODNAME provides the same value.
7
8 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
9 ---
10  drivers/crypto/amcc/crypto4xx_core.c | 2 +-
11  drivers/crypto/amcc/crypto4xx_core.h | 2 --
12  drivers/crypto/amcc/crypto4xx_trng.c | 2 +-
13  3 files changed, 2 insertions(+), 4 deletions(-)
14
15 --- a/drivers/crypto/amcc/crypto4xx_core.c
16 +++ b/drivers/crypto/amcc/crypto4xx_core.c
17 @@ -1441,7 +1441,7 @@ MODULE_DEVICE_TABLE(of, crypto4xx_match)
18  
19  static struct platform_driver crypto4xx_driver = {
20         .driver = {
21 -               .name = MODULE_NAME,
22 +               .name = KBUILD_MODNAME,
23                 .of_match_table = crypto4xx_match,
24         },
25         .probe          = crypto4xx_probe,
26 --- a/drivers/crypto/amcc/crypto4xx_core.h
27 +++ b/drivers/crypto/amcc/crypto4xx_core.h
28 @@ -28,8 +28,6 @@
29  #include "crypto4xx_reg_def.h"
30  #include "crypto4xx_sa.h"
31  
32 -#define MODULE_NAME "crypto4xx"
33 -
34  #define PPC460SX_SDR0_SRST                      0x201
35  #define PPC405EX_SDR0_SRST                      0x200
36  #define PPC460EX_SDR0_SRST                      0x201
37 --- a/drivers/crypto/amcc/crypto4xx_trng.c
38 +++ b/drivers/crypto/amcc/crypto4xx_trng.c
39 @@ -94,7 +94,7 @@ void ppc4xx_trng_probe(struct crypto4xx_
40         if (!rng)
41                 goto err_out;
42  
43 -       rng->name = MODULE_NAME;
44 +       rng->name = KBUILD_MODNAME;
45         rng->data_present = ppc4xx_trng_data_present;
46         rng->data_read = ppc4xx_trng_data_read;
47         rng->priv = (unsigned long) dev;