linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] hwrng: Use KBUILD_MODNAME in pseries-rng.c
@ 2013-09-25  9:24 Michael Ellerman
  2013-09-25  9:24 ` [PATCH 2/2] hwrng: Return errors to upper levels " Michael Ellerman
  2013-10-07  7:10 ` [PATCH 1/2] hwrng: Use KBUILD_MODNAME " Herbert Xu
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Ellerman @ 2013-09-25  9:24 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: herbert, linux-kernel, mpm

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---
 drivers/char/hw_random/pseries-rng.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/char/hw_random/pseries-rng.c b/drivers/char/hw_random/pseries-rng.c
index 5f11979..9dbeed3 100644
--- a/drivers/char/hw_random/pseries-rng.c
+++ b/drivers/char/hw_random/pseries-rng.c
@@ -21,7 +21,6 @@
 #include <linux/hw_random.h>
 #include <asm/vio.h>
 
-#define MODULE_NAME "pseries-rng"
 
 static int pseries_rng_data_read(struct hwrng *rng, u32 *data)
 {
@@ -47,7 +46,7 @@ static unsigned long pseries_rng_get_desired_dma(struct vio_dev *vdev)
 };
 
 static struct hwrng pseries_rng = {
-	.name		= MODULE_NAME,
+	.name		= KBUILD_MODNAME,
 	.data_read	= pseries_rng_data_read,
 };
 
@@ -70,7 +69,7 @@ static struct vio_device_id pseries_rng_driver_ids[] = {
 MODULE_DEVICE_TABLE(vio, pseries_rng_driver_ids);
 
 static struct vio_driver pseries_rng_driver = {
-	.name = MODULE_NAME,
+	.name = KBUILD_MODNAME,
 	.probe = pseries_rng_probe,
 	.remove = pseries_rng_remove,
 	.get_desired_dma = pseries_rng_get_desired_dma,
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-07  7:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-25  9:24 [PATCH 1/2] hwrng: Use KBUILD_MODNAME in pseries-rng.c Michael Ellerman
2013-09-25  9:24 ` [PATCH 2/2] hwrng: Return errors to upper levels " Michael Ellerman
2013-10-07  7:10 ` [PATCH 1/2] hwrng: Use KBUILD_MODNAME " Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).