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 = {  	.id_table	= mptfc_pci_table,  	.probe		= mptfc_probe,  	.remove		= __devexit_p(mptscsih_remove), -	.driver         = { -		.shutdown = mptscsih_shutdown, -        }, +	.shutdown	= mptscsih_shutdown,  #ifdef CONFIG_PM  	.suspend	= mptscsih_suspend,  	.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);  #endif  void 		mptscsih_remove(struct pci_dev *); -void 		mptscsih_shutdown(struct device *); +void 		mptscsih_shutdown(struct pci_dev *);  #ifdef CONFIG_PM  int 		mptscsih_suspend(struct pci_dev *pdev, pm_message_t state);  int 		mptscsih_resume(struct pci_dev *pdev); @@ -988,7 +988,7 @@ mptscsih_remove(struct pci_dev *pdev)  #endif  #endif -	mptscsih_shutdown(&pdev->dev); +	mptscsih_shutdown(pdev);  	sz1=0; @@ -1026,9 +1026,9 @@ mptscsih_remove(struct pci_dev *pdev)   *   */  void -mptscsih_shutdown(struct device * dev) +mptscsih_shutdown(struct pci_dev *pdev)  { -	MPT_ADAPTER 		*ioc = pci_get_drvdata(to_pci_dev(dev)); +	MPT_ADAPTER 		*ioc = pci_get_drvdata(pdev);  	struct Scsi_Host 	*host = ioc->sh;  	MPT_SCSI_HOST		*hd; @@ -1054,7 +1054,7 @@ mptscsih_shutdown(struct device * dev)  int  mptscsih_suspend(struct pci_dev *pdev, pm_message_t state)  { -	mptscsih_shutdown(&pdev->dev); +	mptscsih_shutdown(pdev);  	return mpt_suspend(pdev,state);  } 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 @@  #endif  extern void mptscsih_remove(struct pci_dev *); -extern void mptscsih_shutdown(struct device *); +extern void mptscsih_shutdown(struct pci_dev *);  #ifdef CONFIG_PM  extern int mptscsih_suspend(struct pci_dev *pdev, u32 state);  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 = {  	.id_table	= mptspi_pci_table,  	.probe		= mptspi_probe,  	.remove		= __devexit_p(mptscsih_remove), -	.driver         = { -		.shutdown = mptscsih_shutdown, -        }, +	.shutdown	= mptscsih_shutdown,  #ifdef CONFIG_PM  	.suspend	= mptscsih_suspend,  	.resume		= mptscsih_resume,  | 
