diff options
Diffstat (limited to 'drivers/message/fusion')
-rw-r--r-- | drivers/message/fusion/mptbase.c | 14 | ||||
-rw-r--r-- | drivers/message/fusion/mptfc.c | 4 | ||||
-rw-r--r-- | drivers/message/fusion/mptscsih.c | 10 | ||||
-rw-r--r-- | drivers/message/fusion/mptscsih.h | 4 | ||||
-rw-r--r-- | drivers/message/fusion/mptspi.c | 4 |
5 files changed, 10 insertions, 26 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index 8b623278ccd..ffbe6f4720e 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -1363,19 +1363,7 @@ mpt_suspend(struct pci_dev *pdev, pm_message_t state) | |||
1363 | u32 device_state; | 1363 | u32 device_state; |
1364 | MPT_ADAPTER *ioc = pci_get_drvdata(pdev); | 1364 | MPT_ADAPTER *ioc = pci_get_drvdata(pdev); |
1365 | 1365 | ||
1366 | switch(state) | 1366 | device_state=pci_choose_state(pdev, state); |
1367 | { | ||
1368 | case 1: /* S1 */ | ||
1369 | device_state=1; /* D1 */; | ||
1370 | break; | ||
1371 | case 3: /* S3 */ | ||
1372 | case 4: /* S4 */ | ||
1373 | device_state=3; /* D3 */; | ||
1374 | break; | ||
1375 | default: | ||
1376 | return -EAGAIN /*FIXME*/; | ||
1377 | break; | ||
1378 | } | ||
1379 | 1367 | ||
1380 | printk(MYIOC_s_INFO_FMT | 1368 | printk(MYIOC_s_INFO_FMT |
1381 | "pci-suspend: pdev=0x%p, slot=%s, Entering operating state [D%d]\n", | 1369 | "pci-suspend: pdev=0x%p, slot=%s, Entering operating state [D%d]\n", |
diff --git a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c index 29f66de4e8f..13771abea13 100644 --- a/drivers/message/fusion/mptfc.c +++ b/drivers/message/fusion/mptfc.c | |||
@@ -347,9 +347,7 @@ static struct pci_driver mptfc_driver = { | |||
347 | .id_table = mptfc_pci_table, | 347 | .id_table = mptfc_pci_table, |
348 | .probe = mptfc_probe, | 348 | .probe = mptfc_probe, |
349 | .remove = __devexit_p(mptscsih_remove), | 349 | .remove = __devexit_p(mptscsih_remove), |
350 | .driver = { | 350 | .shutdown = mptscsih_shutdown, |
351 | .shutdown = mptscsih_shutdown, | ||
352 | }, | ||
353 | #ifdef CONFIG_PM | 351 | #ifdef CONFIG_PM |
354 | .suspend = mptscsih_suspend, | 352 | .suspend = mptscsih_suspend, |
355 | .resume = mptscsih_resume, | 353 | .resume = mptscsih_resume, |
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index 364c49cb748..b9d4f78725b 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
@@ -170,7 +170,7 @@ static void mptscsih_fillbuf(char *buffer, int size, int index, int width); | |||
170 | #endif | 170 | #endif |
171 | 171 | ||
172 | void mptscsih_remove(struct pci_dev *); | 172 | void mptscsih_remove(struct pci_dev *); |
173 | void mptscsih_shutdown(struct device *); | 173 | void mptscsih_shutdown(struct pci_dev *); |
174 | #ifdef CONFIG_PM | 174 | #ifdef CONFIG_PM |
175 | int mptscsih_suspend(struct pci_dev *pdev, pm_message_t state); | 175 | int mptscsih_suspend(struct pci_dev *pdev, pm_message_t state); |
176 | int mptscsih_resume(struct pci_dev *pdev); | 176 | int mptscsih_resume(struct pci_dev *pdev); |
@@ -988,7 +988,7 @@ mptscsih_remove(struct pci_dev *pdev) | |||
988 | #endif | 988 | #endif |
989 | #endif | 989 | #endif |
990 | 990 | ||
991 | mptscsih_shutdown(&pdev->dev); | 991 | mptscsih_shutdown(pdev); |
992 | 992 | ||
993 | sz1=0; | 993 | sz1=0; |
994 | 994 | ||
@@ -1026,9 +1026,9 @@ mptscsih_remove(struct pci_dev *pdev) | |||
1026 | * | 1026 | * |
1027 | */ | 1027 | */ |
1028 | void | 1028 | void |
1029 | mptscsih_shutdown(struct device * dev) | 1029 | mptscsih_shutdown(struct pci_dev *pdev) |
1030 | { | 1030 | { |
1031 | MPT_ADAPTER *ioc = pci_get_drvdata(to_pci_dev(dev)); | 1031 | MPT_ADAPTER *ioc = pci_get_drvdata(pdev); |
1032 | struct Scsi_Host *host = ioc->sh; | 1032 | struct Scsi_Host *host = ioc->sh; |
1033 | MPT_SCSI_HOST *hd; | 1033 | MPT_SCSI_HOST *hd; |
1034 | 1034 | ||
@@ -1054,7 +1054,7 @@ mptscsih_shutdown(struct device * dev) | |||
1054 | int | 1054 | int |
1055 | mptscsih_suspend(struct pci_dev *pdev, pm_message_t state) | 1055 | mptscsih_suspend(struct pci_dev *pdev, pm_message_t state) |
1056 | { | 1056 | { |
1057 | mptscsih_shutdown(&pdev->dev); | 1057 | mptscsih_shutdown(pdev); |
1058 | return mpt_suspend(pdev,state); | 1058 | return mpt_suspend(pdev,state); |
1059 | } | 1059 | } |
1060 | 1060 | ||
diff --git a/drivers/message/fusion/mptscsih.h b/drivers/message/fusion/mptscsih.h index c202ce89a0f..51c0255ac16 100644 --- a/drivers/message/fusion/mptscsih.h +++ b/drivers/message/fusion/mptscsih.h | |||
@@ -82,9 +82,9 @@ | |||
82 | #endif | 82 | #endif |
83 | 83 | ||
84 | extern void mptscsih_remove(struct pci_dev *); | 84 | extern void mptscsih_remove(struct pci_dev *); |
85 | extern void mptscsih_shutdown(struct device *); | 85 | extern void mptscsih_shutdown(struct pci_dev *); |
86 | #ifdef CONFIG_PM | 86 | #ifdef CONFIG_PM |
87 | extern int mptscsih_suspend(struct pci_dev *pdev, u32 state); | 87 | extern int mptscsih_suspend(struct pci_dev *pdev, pm_message_t state); |
88 | extern int mptscsih_resume(struct pci_dev *pdev); | 88 | extern int mptscsih_resume(struct pci_dev *pdev); |
89 | #endif | 89 | #endif |
90 | extern int mptscsih_proc_info(struct Scsi_Host *host, char *buffer, char **start, off_t offset, int length, int func); | 90 | extern int mptscsih_proc_info(struct Scsi_Host *host, char *buffer, char **start, off_t offset, int length, int func); |
diff --git a/drivers/message/fusion/mptspi.c b/drivers/message/fusion/mptspi.c index a0a2e0afb21..dfa8806b1e1 100644 --- a/drivers/message/fusion/mptspi.c +++ b/drivers/message/fusion/mptspi.c | |||
@@ -402,9 +402,7 @@ static struct pci_driver mptspi_driver = { | |||
402 | .id_table = mptspi_pci_table, | 402 | .id_table = mptspi_pci_table, |
403 | .probe = mptspi_probe, | 403 | .probe = mptspi_probe, |
404 | .remove = __devexit_p(mptscsih_remove), | 404 | .remove = __devexit_p(mptscsih_remove), |
405 | .driver = { | 405 | .shutdown = mptscsih_shutdown, |
406 | .shutdown = mptscsih_shutdown, | ||
407 | }, | ||
408 | #ifdef CONFIG_PM | 406 | #ifdef CONFIG_PM |
409 | .suspend = mptscsih_suspend, | 407 | .suspend = mptscsih_suspend, |
410 | .resume = mptscsih_resume, | 408 | .resume = mptscsih_resume, |