diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-07-12 14:20:52 -0400 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-03-20 17:44:26 +0900 |
commit | 261268f71f53e813c74527dc9c8907d49f0831cb (patch) | |
tree | e64b6f5511a101bff61fe33cb89804523c2eb134 /drivers | |
parent | 24008a9aedeacebd1a8092151179de428d036957 (diff) | |
download | linux-3.10-261268f71f53e813c74527dc9c8907d49f0831cb.tar.gz linux-3.10-261268f71f53e813c74527dc9c8907d49f0831cb.tar.bz2 linux-3.10-261268f71f53e813c74527dc9c8907d49f0831cb.zip |
staging: zram: Add auto loading of module if user opens /dev/zram.
Greg spotted that said driver is not subscribing to the automagic
mechanism of auto-loading if a user tries to open /dev/zram.
This fixes it.
Change-Id: I934d034752f1c677076f439b95da178b45384243
CC: Minchan Kim <minchan@kernel.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/zram/zram_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c index 82c7202fd5c..1b30a5e87c7 100644 --- a/drivers/staging/zram/zram_drv.c +++ b/drivers/staging/zram/zram_drv.c @@ -919,3 +919,4 @@ MODULE_PARM_DESC(num_devices, "Number of zram devices"); MODULE_LICENSE("Dual BSD/GPL"); MODULE_AUTHOR("Nitin Gupta <ngupta@vflare.org>"); MODULE_DESCRIPTION("Compressed RAM Block Device"); +MODULE_ALIAS("devname:zram"); |