staging: zram: Add auto loading of module if user opens /dev/zram.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 12 Jul 2013 18:20:52 +0000 (14:20 -0400)
committerAlex Shi <alex.shi@linaro.org>
Mon, 11 May 2015 09:35:53 +0000 (17:35 +0800)
commit068e927e51265b16110951101506d112ef38fb36
treee072bbf64006076d9f5306f6eec8172bdbf7dedd
parent687f091b39ef238b975b6ad4e4e282ee9aade598
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.

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>
(cherry picked from commit c70bda992c12e593e411c02a52e4bd6985407539)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/staging/zram/zram_drv.c