]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/block/z2ram.c
m68k: Return -ENODEV if no device is found
[linux-2.6-omap-h63xx.git] / drivers / block / z2ram.c
index e40fa98842e5a96a0e396d63ebb5a5f7e3710807..be20a67f1fa8c78397be751954a1d225e511af77 100644 (file)
@@ -67,7 +67,7 @@ static DEFINE_SPINLOCK(z2ram_lock);
 static struct block_device_operations z2_fops;
 static struct gendisk *z2ram_gendisk;
 
-static void do_z2_request(request_queue_t *q)
+static void do_z2_request(struct request_queue *q)
 {
        struct request *req;
        while ((req = elv_next_request(q)) != NULL) {
@@ -332,7 +332,7 @@ z2_init(void)
     int ret;
 
     if (!MACH_IS_AMIGA)
-       return -ENXIO;
+       return -ENODEV;
 
     ret = -EBUSY;
     if (register_blkdev(Z2RAM_MAJOR, DEVICE_NAME))