summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorZhaolei <zhaolei@cn.fujitsu.com>2009-07-14 11:59:05 +0200
committerTejun Heo <tj@kernel.org>2009-07-15 04:27:40 +0200
commitc9d4bc289cd1cd43c3cff97b73efe2b0b5098a92 (patch)
treec288b8931cadbe25581bc33bada3f8b6b17c2536 /drivers/block
parentcfq-iosched: reset oom_cfqq in cfq_set_request() (diff)
downloadlinux-c9d4bc289cd1cd43c3cff97b73efe2b0b5098a92.tar.xz
linux-c9d4bc289cd1cd43c3cff97b73efe2b0b5098a92.zip
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>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/z2ram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c
index 4575171e5beb..b2590409f25e 100644
--- a/drivers/block/z2ram.c
+++ b/drivers/block/z2ram.c
@@ -374,7 +374,7 @@ err:
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);