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.h | |
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.h')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx.h b/drivers/scsi/aic7xxx/aic7xxx.h index 3d4e42d90452..c0344e617651 100644 --- a/drivers/scsi/aic7xxx/aic7xxx.h +++ b/drivers/scsi/aic7xxx/aic7xxx.h | |||
@@ -1143,7 +1143,9 @@ struct ahc_pci_identity *ahc_find_pci_device(ahc_dev_softc_t); | |||
1143 | int ahc_pci_config(struct ahc_softc *, | 1143 | int ahc_pci_config(struct ahc_softc *, |
1144 | struct ahc_pci_identity *); | 1144 | struct ahc_pci_identity *); |
1145 | int ahc_pci_test_register_access(struct ahc_softc *); | 1145 | int ahc_pci_test_register_access(struct ahc_softc *); |
1146 | #ifdef CONFIG_PM | ||
1146 | void ahc_pci_resume(struct ahc_softc *ahc); | 1147 | void ahc_pci_resume(struct ahc_softc *ahc); |
1148 | #endif | ||
1147 | 1149 | ||
1148 | /*************************** EISA/VL Front End ********************************/ | 1150 | /*************************** EISA/VL Front End ********************************/ |
1149 | struct aic7770_identity *aic7770_find_device(uint32_t); | 1151 | struct aic7770_identity *aic7770_find_device(uint32_t); |
@@ -1170,8 +1172,10 @@ int ahc_chip_init(struct ahc_softc *ahc); | |||
1170 | int ahc_init(struct ahc_softc *ahc); | 1172 | int ahc_init(struct ahc_softc *ahc); |
1171 | void ahc_intr_enable(struct ahc_softc *ahc, int enable); | 1173 | void ahc_intr_enable(struct ahc_softc *ahc, int enable); |
1172 | void ahc_pause_and_flushwork(struct ahc_softc *ahc); | 1174 | void ahc_pause_and_flushwork(struct ahc_softc *ahc); |
1175 | #ifdef CONFIG_PM | ||
1173 | int ahc_suspend(struct ahc_softc *ahc); | 1176 | int ahc_suspend(struct ahc_softc *ahc); |
1174 | int ahc_resume(struct ahc_softc *ahc); | 1177 | int ahc_resume(struct ahc_softc *ahc); |
1178 | #endif | ||
1175 | void ahc_set_unit(struct ahc_softc *, int); | 1179 | void ahc_set_unit(struct ahc_softc *, int); |
1176 | void ahc_set_name(struct ahc_softc *, char *); | 1180 | void ahc_set_name(struct ahc_softc *, char *); |
1177 | void ahc_alloc_scbs(struct ahc_softc *ahc); | 1181 | void ahc_alloc_scbs(struct ahc_softc *ahc); |