goto out_region;
}
- host = scsi_register(&arxescsi_template, sizeof(struct arxescsi_info));
+ host = scsi_host_alloc(&arxescsi_template, sizeof(struct arxescsi_info));
if (!host) {
ret = -ENOMEM;
goto out_unmap;
fas216_release(host);
out_unregister:
- scsi_unregister(host);
+ scsi_host_put(host);
out_unmap:
iounmap(base);
out_region:
release_mem_region(resbase, reslen);
fas216_release(host);
- scsi_unregister(host);
+ scsi_host_put(host);
}
static const struct ecard_id arxescsi_cids[] = {
goto out_region;
}
- host = scsi_register(&cumanascsi2_template,
- sizeof(struct cumanascsi2_info));
+ host = scsi_host_alloc(&cumanascsi2_template,
+ sizeof(struct cumanascsi2_info));
if (!host) {
ret = -ENOMEM;
goto out_unmap;
fas216_release(host);
out_free:
- scsi_unregister(host);
+ scsi_host_put(host);
out_unmap:
iounmap(base);
release_mem_region(resbase, reslen);
fas216_release(host);
- scsi_unregister(host);
+ scsi_host_put(host);
}
static const struct ecard_id cumanascsi2_cids[] = {
goto out_region;
}
- host = scsi_register(&eesox_template,
- sizeof(struct eesoxscsi_info));
+ host = scsi_host_alloc(&eesox_template,
+ sizeof(struct eesoxscsi_info));
if (!host) {
ret = -ENOMEM;
goto out_unmap;
out_free:
device_remove_file(&ec->dev, &dev_attr_bus_term);
- scsi_unregister(host);
+ scsi_host_put(host);
out_unmap:
iounmap(base);
release_mem_region(resbase, reslen);
fas216_release(host);
- scsi_unregister(host);
+ scsi_host_put(host);
}
static const struct ecard_id eesoxscsi_cids[] = {
goto out_region;
}
- host = scsi_register(&powertecscsi_template,
- sizeof (struct powertec_info));
+ host = scsi_host_alloc(&powertecscsi_template,
+ sizeof (struct powertec_info));
if (!host) {
ret = -ENOMEM;
goto out_unmap;
out_free:
device_remove_file(&ec->dev, &dev_attr_bus_term);
- scsi_unregister(host);
+ scsi_host_put(host);
out_unmap:
iounmap(base);
release_mem_region(resbase, reslen);
fas216_release(host);
- scsi_unregister(host);
+ scsi_host_put(host);
}
static const struct ecard_id powertecscsi_cids[] = {