diff options
author | FUJITA Tomonori <tomof@acm.org> | 2008-01-26 10:08:19 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-30 14:03:40 -0500 |
commit | 03e7925d0737d99086acee6263424dafa34e45ae (patch) | |
tree | 94aafd02a7372c55acbd37029c24f7f8d15a75fd /drivers/scsi/aic7xxx/aic7xxx_pci.c | |
parent | 67eb63364ede1a16ea60b4de0dca64ca35868082 (diff) |
[SCSI] aic7xxx: fix warnings with CONFIG_PM disabled
CC [M] drivers/scsi/aic7xxx/aic7xxx_osm_pci.o
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c:148: warning: 'ahc_linux_pci_dev_suspend' defined but not used
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c:166: warning: 'ahc_linux_pci_dev_resume' defined but not used
This moves aic7xxx_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/aic7xxx_pci.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_pci.c b/drivers/scsi/aic7xxx/aic7xxx_pci.c index ae35937b8055..56848f41e4f9 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_pci.c +++ b/drivers/scsi/aic7xxx/aic7xxx_pci.c | |||
@@ -2020,6 +2020,7 @@ ahc_pci_chip_init(struct ahc_softc *ahc) | |||
2020 | return (ahc_chip_init(ahc)); | 2020 | return (ahc_chip_init(ahc)); |
2021 | } | 2021 | } |
2022 | 2022 | ||
2023 | #ifdef CONFIG_PM | ||
2023 | void | 2024 | void |
2024 | ahc_pci_resume(struct ahc_softc *ahc) | 2025 | ahc_pci_resume(struct ahc_softc *ahc) |
2025 | { | 2026 | { |
@@ -2051,6 +2052,7 @@ ahc_pci_resume(struct ahc_softc *ahc) | |||
2051 | ahc_release_seeprom(&sd); | 2052 | ahc_release_seeprom(&sd); |
2052 | } | 2053 | } |
2053 | } | 2054 | } |
2055 | #endif | ||
2054 | 2056 | ||
2055 | static int | 2057 | static int |
2056 | ahc_aic785X_setup(struct ahc_softc *ahc) | 2058 | ahc_aic785X_setup(struct ahc_softc *ahc) |