pktcdvd: stop setting q->queuedata
[linux-2.6-block.git] / drivers / block / ps3vram.c
index 38d42af01b253517f0a185fe4d582c2006f09a29..bdcf083b45e2349fc9d92854ca3433ddf78fa7fb 100644 (file)
@@ -730,10 +730,10 @@ static int ps3vram_probe(struct ps3_system_bus_device *dev)
 
        ps3vram_proc_init(dev);
 
-       gendisk = blk_alloc_disk(NUMA_NO_NODE);
-       if (!gendisk) {
+       gendisk = blk_alloc_disk(NULL, NUMA_NO_NODE);
+       if (IS_ERR(gendisk)) {
                dev_err(&dev->core, "blk_alloc_disk failed\n");
-               error = -ENOMEM;
+               error = PTR_ERR(gendisk);
                goto out_cache_cleanup;
        }