diff options
Diffstat (limited to 'drivers/message/fusion')
| -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 | 2 | ||||
| -rw-r--r-- | drivers/message/fusion/mptspi.c | 4 |
4 files changed, 8 insertions, 12 deletions
diff --git a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c index d8d65397e06e..353deb25e397 100644 --- a/drivers/message/fusion/mptfc.c +++ b/drivers/message/fusion/mptfc.c | |||
| @@ -364,9 +364,7 @@ static struct pci_driver mptfc_driver = { | |||
| 364 | .id_table = mptfc_pci_table, | 364 | .id_table = mptfc_pci_table, |
| 365 | .probe = mptfc_probe, | 365 | .probe = mptfc_probe, |
| 366 | .remove = __devexit_p(mptscsih_remove), | 366 | .remove = __devexit_p(mptscsih_remove), |
| 367 | .driver = { | 367 | .shutdown = mptscsih_shutdown, |
| 368 | .shutdown = mptscsih_shutdown, | ||
| 369 | }, | ||
| 370 | #ifdef CONFIG_PM | 368 | #ifdef CONFIG_PM |
| 371 | .suspend = mptscsih_suspend, | 369 | .suspend = mptscsih_suspend, |
| 372 | .resume = mptscsih_resume, | 370 | .resume = mptscsih_resume, |
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index a0078ae5b9b8..4f973a49be4c 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 d73aec33e16a..5ea89bf0df19 100644 --- a/drivers/message/fusion/mptscsih.h +++ b/drivers/message/fusion/mptscsih.h | |||
| @@ -82,7 +82,7 @@ | |||
| 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, u32 state); |
| 88 | extern int mptscsih_resume(struct pci_dev *pdev); | 88 | extern int mptscsih_resume(struct pci_dev *pdev); |
diff --git a/drivers/message/fusion/mptspi.c b/drivers/message/fusion/mptspi.c index 5f9a61b85b3b..e0c0ee5bc966 100644 --- a/drivers/message/fusion/mptspi.c +++ b/drivers/message/fusion/mptspi.c | |||
| @@ -419,9 +419,7 @@ static struct pci_driver mptspi_driver = { | |||
| 419 | .id_table = mptspi_pci_table, | 419 | .id_table = mptspi_pci_table, |
| 420 | .probe = mptspi_probe, | 420 | .probe = mptspi_probe, |
| 421 | .remove = __devexit_p(mptscsih_remove), | 421 | .remove = __devexit_p(mptscsih_remove), |
| 422 | .driver = { | 422 | .shutdown = mptscsih_shutdown, |
| 423 | .shutdown = mptscsih_shutdown, | ||
| 424 | }, | ||
| 425 | #ifdef CONFIG_PM | 423 | #ifdef CONFIG_PM |
| 426 | .suspend = mptscsih_suspend, | 424 | .suspend = mptscsih_suspend, |
| 427 | .resume = mptscsih_resume, | 425 | .resume = mptscsih_resume, |
