Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19320
b: refs/heads/master
c: b62735d
h: refs/heads/master
v: v3
  • Loading branch information
Mikael Pettersson authored and Linus Torvalds committed Feb 1, 2006
1 parent efb742b commit 62376f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6292d9aaf3047f1abd970bc64ab6d952eda258ac
refs/heads/master: b62735d9c6212de6fd1b5e96b41d978939fb0dd2
14 changes: 5 additions & 9 deletions trunk/drivers/scsi/ide-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,9 +751,8 @@ static void idescsi_setup (ide_drive_t *drive, idescsi_scsi_t *scsi)
idescsi_add_settings(drive);
}

static int ide_scsi_remove(struct device *dev)
static void ide_scsi_remove(ide_drive_t *drive)
{
ide_drive_t *drive = to_ide_device(dev);
struct Scsi_Host *scsihost = drive->driver_data;
struct ide_scsi_obj *scsi = scsihost_to_idescsi(scsihost);
struct gendisk *g = scsi->disk;
Expand All @@ -768,11 +767,9 @@ static int ide_scsi_remove(struct device *dev)

scsi_remove_host(scsihost);
ide_scsi_put(scsi);

return 0;
}

static int ide_scsi_probe(struct device *);
static int ide_scsi_probe(ide_drive_t *);

#ifdef CONFIG_PROC_FS
static ide_proc_entry_t idescsi_proc[] = {
Expand All @@ -788,9 +785,9 @@ static ide_driver_t idescsi_driver = {
.owner = THIS_MODULE,
.name = "ide-scsi",
.bus = &ide_bus_type,
.probe = ide_scsi_probe,
.remove = ide_scsi_remove,
},
.probe = ide_scsi_probe,
.remove = ide_scsi_remove,
.version = IDESCSI_VERSION,
.media = ide_scsi,
.supports_dsc_overlap = 0,
Expand Down Expand Up @@ -1119,9 +1116,8 @@ static struct scsi_host_template idescsi_template = {
.proc_name = "ide-scsi",
};

static int ide_scsi_probe(struct device *dev)
static int ide_scsi_probe(ide_drive_t *drive)
{
ide_drive_t *drive = to_ide_device(dev);
idescsi_scsi_t *idescsi;
struct Scsi_Host *host;
struct gendisk *g;
Expand Down

0 comments on commit 62376f7

Please sign in to comment.