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 710f19de3d40..d63d229e2323 100644 --- a/drivers/scsi/sim710.c +++ b/drivers/scsi/sim710.c | |||
@@ -138,6 +138,7 @@ sim710_probe_common(struct device *dev, unsigned long base_addr, | |||
138 | goto out_put_host; | 138 | goto out_put_host; |
139 | } | 139 | } |
140 | 140 | ||
141 | dev_set_drvdata(dev, host); | ||
141 | scsi_scan_host(host); | 142 | scsi_scan_host(host); |
142 | 143 | ||
143 | return 0; | 144 | return 0; |
@@ -155,7 +156,7 @@ sim710_probe_common(struct device *dev, unsigned long base_addr, | |||
155 | static __devexit int | 156 | static __devexit int |
156 | sim710_device_remove(struct device *dev) | 157 | sim710_device_remove(struct device *dev) |
157 | { | 158 | { |
158 | struct Scsi_Host *host = dev_to_shost(dev); | 159 | struct Scsi_Host *host = dev_get_drvdata(dev); |
159 | struct NCR_700_Host_Parameters *hostdata = | 160 | struct NCR_700_Host_Parameters *hostdata = |
160 | (struct NCR_700_Host_Parameters *)host->hostdata[0]; | 161 | (struct NCR_700_Host_Parameters *)host->hostdata[0]; |
161 | 162 | ||