z2ram: Small cleanup for z2ram.c
We should use Z2MINOR_COUNT as range argument in blk_unregister_region() Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
32f2e807a3
commit
c9d4bc289c
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ z2_init(void)
|
||||||
static void __exit z2_exit(void)
|
static void __exit z2_exit(void)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
blk_unregister_region(MKDEV(Z2RAM_MAJOR, 0), 256);
|
blk_unregister_region(MKDEV(Z2RAM_MAJOR, 0), Z2MINOR_COUNT);
|
||||||
unregister_blkdev(Z2RAM_MAJOR, DEVICE_NAME);
|
unregister_blkdev(Z2RAM_MAJOR, DEVICE_NAME);
|
||||||
del_gendisk(z2ram_gendisk);
|
del_gendisk(z2ram_gendisk);
|
||||||
put_disk(z2ram_gendisk);
|
put_disk(z2ram_gendisk);
|
||||||
|
|
Loading…
Reference in a new issue