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.h | |
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.h')
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx.h b/drivers/scsi/aic7xxx/aic79xx.h index ce638aa6005a..2f00467b6b8c 100644 --- a/drivers/scsi/aic7xxx/aic79xx.h +++ b/drivers/scsi/aic7xxx/aic79xx.h | |||
@@ -1340,8 +1340,10 @@ struct ahd_pci_identity *ahd_find_pci_device(ahd_dev_softc_t); | |||
1340 | int ahd_pci_config(struct ahd_softc *, | 1340 | int ahd_pci_config(struct ahd_softc *, |
1341 | struct ahd_pci_identity *); | 1341 | struct ahd_pci_identity *); |
1342 | int ahd_pci_test_register_access(struct ahd_softc *); | 1342 | int ahd_pci_test_register_access(struct ahd_softc *); |
1343 | #ifdef CONFIG_PM | ||
1343 | void ahd_pci_suspend(struct ahd_softc *); | 1344 | void ahd_pci_suspend(struct ahd_softc *); |
1344 | void ahd_pci_resume(struct ahd_softc *); | 1345 | void ahd_pci_resume(struct ahd_softc *); |
1346 | #endif | ||
1345 | 1347 | ||
1346 | /************************** SCB and SCB queue management **********************/ | 1348 | /************************** SCB and SCB queue management **********************/ |
1347 | void ahd_qinfifo_requeue_tail(struct ahd_softc *ahd, | 1349 | void ahd_qinfifo_requeue_tail(struct ahd_softc *ahd, |
@@ -1352,8 +1354,10 @@ struct ahd_softc *ahd_alloc(void *platform_arg, char *name); | |||
1352 | int ahd_softc_init(struct ahd_softc *); | 1354 | int ahd_softc_init(struct ahd_softc *); |
1353 | void ahd_controller_info(struct ahd_softc *ahd, char *buf); | 1355 | void ahd_controller_info(struct ahd_softc *ahd, char *buf); |
1354 | int ahd_init(struct ahd_softc *ahd); | 1356 | int ahd_init(struct ahd_softc *ahd); |
1357 | #ifdef CONFIG_PM | ||
1355 | int ahd_suspend(struct ahd_softc *ahd); | 1358 | int ahd_suspend(struct ahd_softc *ahd); |
1356 | void ahd_resume(struct ahd_softc *ahd); | 1359 | void ahd_resume(struct ahd_softc *ahd); |
1360 | #endif | ||
1357 | int ahd_default_config(struct ahd_softc *ahd); | 1361 | int ahd_default_config(struct ahd_softc *ahd); |
1358 | int ahd_parse_vpddata(struct ahd_softc *ahd, | 1362 | int ahd_parse_vpddata(struct ahd_softc *ahd, |
1359 | struct vpd_config *vpd); | 1363 | struct vpd_config *vpd); |
@@ -1361,7 +1365,6 @@ int ahd_parse_cfgdata(struct ahd_softc *ahd, | |||
1361 | struct seeprom_config *sc); | 1365 | struct seeprom_config *sc); |
1362 | void ahd_intr_enable(struct ahd_softc *ahd, int enable); | 1366 | void ahd_intr_enable(struct ahd_softc *ahd, int enable); |
1363 | void ahd_pause_and_flushwork(struct ahd_softc *ahd); | 1367 | void ahd_pause_and_flushwork(struct ahd_softc *ahd); |
1364 | int ahd_suspend(struct ahd_softc *ahd); | ||
1365 | void ahd_set_unit(struct ahd_softc *, int); | 1368 | void ahd_set_unit(struct ahd_softc *, int); |
1366 | void ahd_set_name(struct ahd_softc *, char *); | 1369 | void ahd_set_name(struct ahd_softc *, char *); |
1367 | struct scb *ahd_get_scb(struct ahd_softc *ahd, u_int col_idx); | 1370 | struct scb *ahd_get_scb(struct ahd_softc *ahd, u_int col_idx); |