Commit 47f64403 authored by James Bottomley's avatar James Bottomley

Merge ssh://linux-scsi@linux-scsi.bkbits.net/scsi-misc-2.5

into raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5
parents c9f9d638 162e112e
...@@ -115,7 +115,6 @@ ...@@ -115,7 +115,6 @@
#define NCR_700_VERSION "2.8" #define NCR_700_VERSION "2.8"
#include <linux/config.h> #include <linux/config.h>
#include <linux/version.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/string.h> #include <linux/string.h>
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#define BusLogic_DriverDate "18 July 2002" #define BusLogic_DriverDate "18 July 2002"
#include <linux/config.h> #include <linux/config.h>
#include <linux/version.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
......
...@@ -224,7 +224,6 @@ ...@@ -224,7 +224,6 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/version.h>
#include <linux/blkdev.h> #include <linux/blkdev.h>
#include "scsi.h" #include "scsi.h"
#include "hosts.h" #include "hosts.h"
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/signal.h> #include <linux/signal.h>
#include <linux/stat.h> #include <linux/stat.h>
#include <linux/version.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/delay.h> #include <linux/delay.h>
......
...@@ -74,7 +74,6 @@ ...@@ -74,7 +74,6 @@
* - Fix allocation of scsi host structs and private data * - Fix allocation of scsi host structs and private data
**************************************************************************/ **************************************************************************/
#include <linux/version.h>
#include <linux/module.h> #include <linux/module.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <linux/pci.h> #include <linux/pci.h>
......
...@@ -946,13 +946,6 @@ static Scsi_Host_Template idescsi_template = { ...@@ -946,13 +946,6 @@ static Scsi_Host_Template idescsi_template = {
.proc_name = "ide-scsi", .proc_name = "ide-scsi",
}; };
static struct device idescsi_primary = {
.bus_id = "ide-scsi",
};
static struct bus_type idescsi_emu_bus = {
.name = "ide-scsi",
};
static int idescsi_attach(ide_drive_t *drive) static int idescsi_attach(ide_drive_t *drive)
{ {
idescsi_scsi_t *idescsi; idescsi_scsi_t *idescsi;
...@@ -975,7 +968,7 @@ static int idescsi_attach(ide_drive_t *drive) ...@@ -975,7 +968,7 @@ static int idescsi_attach(ide_drive_t *drive)
if (!err) { if (!err) {
idescsi_setup (drive, idescsi); idescsi_setup (drive, idescsi);
drive->disk->fops = &idescsi_ops; drive->disk->fops = &idescsi_ops;
err = scsi_add_host(host, &idescsi_primary); err = scsi_add_host(host, &drive->gendev);
if (!err) { if (!err) {
scsi_scan_host(host); scsi_scan_host(host);
return 0; return 0;
...@@ -990,27 +983,11 @@ static int idescsi_attach(ide_drive_t *drive) ...@@ -990,27 +983,11 @@ static int idescsi_attach(ide_drive_t *drive)
static int __init init_idescsi_module(void) static int __init init_idescsi_module(void)
{ {
int err; return ide_register_driver(&idescsi_driver);
err = bus_register(&idescsi_emu_bus);
if (!err) {
err = device_register(&idescsi_primary);
if (!err) {
err = ide_register_driver(&idescsi_driver);
if (!err)
return 0;
device_unregister(&idescsi_primary);
}
bus_unregister(&idescsi_emu_bus);
}
return err;
} }
static void __exit exit_idescsi_module(void) static void __exit exit_idescsi_module(void)
{ {
device_unregister(&idescsi_primary);
bus_unregister (&idescsi_emu_bus);
ide_unregister_driver(&idescsi_driver); ide_unregister_driver(&idescsi_driver);
} }
......
...@@ -85,12 +85,11 @@ void scsi_proc_hostdir_add(struct scsi_host_template *sht) ...@@ -85,12 +85,11 @@ void scsi_proc_hostdir_add(struct scsi_host_template *sht)
down(&global_host_template_sem); down(&global_host_template_sem);
if (!sht->present++) { if (!sht->present++) {
sht->proc_dir = proc_mkdir(sht->proc_name, proc_scsi); sht->proc_dir = proc_mkdir(sht->proc_name, proc_scsi);
if (!sht->proc_dir) { if (!sht->proc_dir)
printk(KERN_ERR "%s: proc_mkdir failed for %s\n", printk(KERN_ERR "%s: proc_mkdir failed for %s\n",
__FUNCTION__, sht->proc_name); __FUNCTION__, sht->proc_name);
return; else
} sht->proc_dir->owner = sht->module;
sht->proc_dir->owner = sht->module;
} }
up(&global_host_template_sem); up(&global_host_template_sem);
} }
......
...@@ -1514,8 +1514,10 @@ init_sg(void) ...@@ -1514,8 +1514,10 @@ init_sg(void)
if (rc) if (rc)
return rc; return rc;
rc = scsi_register_interface(&sg_interface); rc = scsi_register_interface(&sg_interface);
if (rc) if (rc) {
unregister_chrdev(SCSI_GENERIC_MAJOR, "sg");
return rc; return rc;
}
#ifdef CONFIG_SCSI_PROC_FS #ifdef CONFIG_SCSI_PROC_FS
sg_proc_init(); sg_proc_init();
#endif /* CONFIG_SCSI_PROC_FS */ #endif /* CONFIG_SCSI_PROC_FS */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment