char/nvram: Add "devname:nvram" module alias

This change “char/nvram: Add “devname:nvram” module alias” in Linux kernel is authored by Finn Thain <fthain [at] telegraphics.com.au> on Tue Jan 15 15:18:56 2019 +1100.

char/nvram: Add "devname:nvram" module alias

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

This Linux change may have been applied to various maintained Linux releases and you can find Linux releases including commit 7fc0ac0.

There is one line of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/char/nvram.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/char/nvram.c b/drivers/char/nvram.c
index adcc213..c9e295d 100644
--- a/drivers/char/nvram.c
+++ b/drivers/char/nvram.c
@@ -503,3 +503,4 @@ static void __exit nvram_module_exit(void)
 
 MODULE_LICENSE("GPL");
 MODULE_ALIAS_MISCDEV(NVRAM_MINOR);
+MODULE_ALIAS("devname:nvram");

The commit for this change in Linux stable tree is 7fc0ac0 (patch).

Leave a Reply

Your email address will not be published. Required fields are marked *