Re: [PATCH] PCI fixes for 2.6.0-test6

From: Greg KH
Date: Tue Sep 30 2003 - 18:04:35 EST


ChangeSet 1.1344, 2003/09/26 16:33:35-07:00, mochel@xxxxxxxx

[PATCH] Remove ->save_state() in nsp32.c

Remove the uncalled and unneeded struct pci_driver::save_state() in
drivers/scsi/nsp32.c


drivers/scsi/nsp32.c | 10 ----------
1 files changed, 10 deletions(-)


diff -Nru a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c
--- a/drivers/scsi/nsp32.c Tue Sep 30 15:20:57 2003
+++ b/drivers/scsi/nsp32.c Tue Sep 30 15:20:57 2003
@@ -3435,15 +3435,6 @@
* Power Management
*/
#ifdef CONFIG_PM
-/* Save Device Context */
-static int nsp32_save_state(struct pci_dev *pdev, u32 state)
-{
- struct Scsi_Host *host = pci_get_drvdata(pdev);
-
- nsp32_msg(KERN_INFO, "pci-save_state: stub, pdev=0x%p, state=%ld, slot=%s, host=0x%p", pdev, state, pci_name(pdev), host);
-
- return 0;
-}

/* Device suspended */
static int nsp32_suspend(struct pci_dev *pdev, u32 state)
@@ -3573,7 +3564,6 @@
.probe = nsp32_probe,
.remove = __devexit_p(nsp32_remove),
#ifdef CONFIG_PM
- .save_state = nsp32_save_state,
.suspend = nsp32_suspend,
.resume = nsp32_resume,
.enable_wake = nsp32_enable_wake,

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/