summaryrefslogtreecommitdiffstats
path: root/drivers/block/z2ram.c
diff options
context:
space:
mode:
authorZhaolei <zhaolei@cn.fujitsu.com>2009-07-14 17:59:05 +0800
committerTejun Heo <tj@kernel.org>2009-07-15 11:27:40 +0900
commitc9d4bc289cd1cd43c3cff97b73efe2b0b5098a92 (patch)
treec288b8931cadbe25581bc33bada3f8b6b17c2536 /drivers/block/z2ram.c
parent32f2e807a3938b24d0831211e6094f9e44b2fc83 (diff)
downloadblackbird-op-linux-c9d4bc289cd1cd43c3cff97b73efe2b0b5098a92.tar.gz
blackbird-op-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/z2ram.c')
-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);
OpenPOWER on IntegriCloud