diff options
Diffstat (limited to 'drivers/scsi/aic7xxx/aic79xx_proc.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_proc.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_proc.c b/drivers/scsi/aic7xxx/aic79xx_proc.c index e01cd6175e34..9c631a494ed2 100644 --- a/drivers/scsi/aic7xxx/aic79xx_proc.c +++ b/drivers/scsi/aic7xxx/aic79xx_proc.c | |||
@@ -278,13 +278,8 @@ done: | |||
278 | * Return information to handle /proc support for the driver. | 278 | * Return information to handle /proc support for the driver. |
279 | */ | 279 | */ |
280 | int | 280 | int |
281 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) | ||
282 | ahd_linux_proc_info(char *buffer, char **start, off_t offset, | ||
283 | int length, int hostno, int inout) | ||
284 | #else | ||
285 | ahd_linux_proc_info(struct Scsi_Host *shost, char *buffer, char **start, | 281 | ahd_linux_proc_info(struct Scsi_Host *shost, char *buffer, char **start, |
286 | off_t offset, int length, int inout) | 282 | off_t offset, int length, int inout) |
287 | #endif | ||
288 | { | 283 | { |
289 | struct ahd_softc *ahd; | 284 | struct ahd_softc *ahd; |
290 | struct info_str info; | 285 | struct info_str info; |
@@ -296,14 +291,7 @@ ahd_linux_proc_info(struct Scsi_Host *shost, char *buffer, char **start, | |||
296 | 291 | ||
297 | retval = -EINVAL; | 292 | retval = -EINVAL; |
298 | ahd_list_lock(&l); | 293 | ahd_list_lock(&l); |
299 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) | ||
300 | TAILQ_FOREACH(ahd, &ahd_tailq, links) { | ||
301 | if (ahd->platform_data->host->host_no == hostno) | ||
302 | break; | ||
303 | } | ||
304 | #else | ||
305 | ahd = ahd_find_softc(*(struct ahd_softc **)shost->hostdata); | 294 | ahd = ahd_find_softc(*(struct ahd_softc **)shost->hostdata); |
306 | #endif | ||
307 | 295 | ||
308 | if (ahd == NULL) | 296 | if (ahd == NULL) |
309 | goto done; | 297 | goto done; |