* [PATCH] Small cleanup for z2ram.c
@ 2009-07-14 9:59 Zhaolei
2009-07-15 2:38 ` Tejun Heo
0 siblings, 1 reply; 2+ messages in thread
From: Zhaolei @ 2009-07-14 9:59 UTC (permalink / raw)
To: Tejun Heo, Jens Axboe; +Cc: linux-kernel
We should use Z2MINOR_COUNT as range argument in blk_unregister_region()
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
---
drivers/block/z2ram.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c
index 4575171..b259040 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);
--
1.5.5.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-15 2:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14 9:59 [PATCH] Small cleanup for z2ram.c Zhaolei
2009-07-15 2:38 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox