021-0004-crypto-crypto4xx-kill-MODULE_NAME.patch 1.5 KB

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