Skip to content

Commit

Permalink
z2ram: Small cleanup for z2ram.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
zhaoleidd authored and htejun committed Jul 15, 2009
1 parent 32f2e80 commit c9d4bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/z2ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ z2_init(void)
static void __exit z2_exit(void)
{
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);
del_gendisk(z2ram_gendisk);
put_disk(z2ram_gendisk);
Expand Down

0 comments on commit c9d4bc2

Please sign in to comment.