]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/block/z2ram.c
ps3fb: Set FBINFO_READS_FAST to speed up text console scrolling
[linux-2.6-omap-h63xx.git] / drivers / block / z2ram.c
index 2abf94cc3137ab9df84ebcdb8c9613fa5e4dd66b..e40fa98842e5a96a0e396d63ebb5a5f7e3710807 100644 (file)
@@ -371,9 +371,7 @@ static void __exit z2_exit(void)
 {
     int i, j;
     blk_unregister_region(MKDEV(Z2RAM_MAJOR, 0), 256);
-    if ( unregister_blkdev( Z2RAM_MAJOR, DEVICE_NAME ) != 0 )
-       printk( KERN_ERR DEVICE_NAME ": unregister of device failed\n");
-
+    unregister_blkdev(Z2RAM_MAJOR, DEVICE_NAME);
     del_gendisk(z2ram_gendisk);
     put_disk(z2ram_gendisk);
     blk_cleanup_queue(z2_queue);