return 0;
- err_read:
+err_read:
put_disk(ace->gd);
- err_alloc_disk:
+err_alloc_disk:
blk_cleanup_queue(ace->queue);
- err_blk_initq:
+err_blk_initq:
iounmap(ace->baseaddr);
- err_ioremap:
+err_ioremap:
dev_info(ace->dev, "xsysace: error initializing device at 0x%lx\n",
ace->physaddr);
return -ENOMEM;
dev_set_drvdata(dev, ace);
return 0;
- err_setup:
+err_setup:
dev_set_drvdata(dev, NULL);
kfree(ace);
- err_alloc:
- err_noreg:
+err_alloc:
+err_noreg:
dev_err(dev, "could not initialize device, err=%i\n", rc);
return rc;
}
pr_info("Xilinx SystemACE device driver, major=%i\n", ace_major);
return 0;
- err_plat:
+err_plat:
ace_of_unregister();
- err_of:
+err_of:
unregister_blkdev(ace_major, "xsysace");
- err_blk:
+err_blk:
printk(KERN_ERR "xsysace: registration failed; err=%i\n", rc);
return rc;
}