diff options
Diffstat (limited to 'drivers/scsi/sim710.c')
-rw-r--r-- | drivers/scsi/sim710.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/sim710.c b/drivers/scsi/sim710.c index 018c65f73ac4..6ab11b487ec3 100644 --- a/drivers/scsi/sim710.c +++ b/drivers/scsi/sim710.c | |||
@@ -139,6 +139,7 @@ sim710_probe_common(struct device *dev, unsigned long base_addr, | |||
139 | goto out_put_host; | 139 | goto out_put_host; |
140 | } | 140 | } |
141 | 141 | ||
142 | dev_set_drvdata(dev, host); | ||
142 | scsi_scan_host(host); | 143 | scsi_scan_host(host); |
143 | 144 | ||
144 | return 0; | 145 | return 0; |
@@ -156,7 +157,7 @@ sim710_probe_common(struct device *dev, unsigned long base_addr, | |||
156 | static __devexit int | 157 | static __devexit int |
157 | sim710_device_remove(struct device *dev) | 158 | sim710_device_remove(struct device *dev) |
158 | { | 159 | { |
159 | struct Scsi_Host *host = dev_to_shost(dev); | 160 | struct Scsi_Host *host = dev_get_drvdata(dev); |
160 | struct NCR_700_Host_Parameters *hostdata = | 161 | struct NCR_700_Host_Parameters *hostdata = |
161 | (struct NCR_700_Host_Parameters *)host->hostdata[0]; | 162 | (struct NCR_700_Host_Parameters *)host->hostdata[0]; |
162 | 163 | ||