aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random/pseries-rng.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/hw_random/pseries-rng.c')
-rw-r--r--drivers/char/hw_random/pseries-rng.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/hw_random/pseries-rng.c b/drivers/char/hw_random/pseries-rng.c
index 5f1197929f0c..9dbeed391e57 100644
--- a/drivers/char/hw_random/pseries-rng.c
+++ b/drivers/char/hw_random/pseries-rng.c
@@ -21,7 +21,6 @@
21#include <linux/hw_random.h> 21#include <linux/hw_random.h>
22#include <asm/vio.h> 22#include <asm/vio.h>
23 23
24#define MODULE_NAME "pseries-rng"
25 24
26static int pseries_rng_data_read(struct hwrng *rng, u32 *data) 25static int pseries_rng_data_read(struct hwrng *rng, u32 *data)
27{ 26{
@@ -47,7 +46,7 @@ static unsigned long pseries_rng_get_desired_dma(struct vio_dev *vdev)
47}; 46};
48 47
49static struct hwrng pseries_rng = { 48static struct hwrng pseries_rng = {
50 .name = MODULE_NAME, 49 .name = KBUILD_MODNAME,
51 .data_read = pseries_rng_data_read, 50 .data_read = pseries_rng_data_read,
52}; 51};
53 52
@@ -70,7 +69,7 @@ static struct vio_device_id pseries_rng_driver_ids[] = {
70MODULE_DEVICE_TABLE(vio, pseries_rng_driver_ids); 69MODULE_DEVICE_TABLE(vio, pseries_rng_driver_ids);
71 70
72static struct vio_driver pseries_rng_driver = { 71static struct vio_driver pseries_rng_driver = {
73 .name = MODULE_NAME, 72 .name = KBUILD_MODNAME,
74 .probe = pseries_rng_probe, 73 .probe = pseries_rng_probe,
75 .remove = pseries_rng_remove, 74 .remove = pseries_rng_remove,
76 .get_desired_dma = pseries_rng_get_desired_dma, 75 .get_desired_dma = pseries_rng_get_desired_dma,