diff options
author | FUJITA Tomonori <tomof@acm.org> | 2008-01-26 10:08:18 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-30 14:03:40 -0500 |
commit | 67eb63364ede1a16ea60b4de0dca64ca35868082 (patch) | |
tree | 6b62d9a9ed3a01b13bc3100e16725b7b1faabb09 /drivers/scsi/aic7xxx/aic79xx_pci.c | |
parent | 969ceffb6696ac361db9dbc33c83f855dbdb1528 (diff) |
[SCSI] aic79xx: fix warnings with CONFIG_PM disabled
CC [M] drivers/scsi/aic7xxx/aic79xx_osm_pci.o
drivers/scsi/aic7xxx/aic79xx_osm_pci.c:101: warning: 'ahd_linux_pci_dev_suspend' defined but not used
drivers/scsi/aic7xxx/aic79xx_osm_pci.c:121: warning: 'ahd_linux_pci_dev_resume' defined but not used
This moves aic79xx_pci_driver struct, removes some forward
declarations, and adds some ifdef CONFIG_PM.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic79xx_pci.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_pci.c b/drivers/scsi/aic7xxx/aic79xx_pci.c index 7a203a90601a..df853676e66a 100644 --- a/drivers/scsi/aic7xxx/aic79xx_pci.c +++ b/drivers/scsi/aic7xxx/aic79xx_pci.c | |||
@@ -389,6 +389,7 @@ ahd_pci_config(struct ahd_softc *ahd, struct ahd_pci_identity *entry) | |||
389 | return error; | 389 | return error; |
390 | } | 390 | } |
391 | 391 | ||
392 | #ifdef CONFIG_PM | ||
392 | void | 393 | void |
393 | ahd_pci_suspend(struct ahd_softc *ahd) | 394 | ahd_pci_suspend(struct ahd_softc *ahd) |
394 | { | 395 | { |
@@ -415,6 +416,7 @@ ahd_pci_resume(struct ahd_softc *ahd) | |||
415 | ahd_pci_write_config(ahd->dev_softc, CSIZE_LATTIME, | 416 | ahd_pci_write_config(ahd->dev_softc, CSIZE_LATTIME, |
416 | ahd->suspend_state.pci_state.csize_lattime, /*bytes*/1); | 417 | ahd->suspend_state.pci_state.csize_lattime, /*bytes*/1); |
417 | } | 418 | } |
419 | #endif | ||
418 | 420 | ||
419 | /* | 421 | /* |
420 | * Perform some simple tests that should catch situations where | 422 | * Perform some simple tests that should catch situations where |