Re: [PATCH] PCI fixes for 2.6.9

From: Greg KH
Date: Tue Oct 19 2004 - 23:10:06 EST


ChangeSet 1.2069, 2004/10/19 14:48:04-07:00, greg@xxxxxxxxx

PCI: fix up pci_save/restore_state in via-agp due to api change.

Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


drivers/char/agp/via-agp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/drivers/char/agp/via-agp.c b/drivers/char/agp/via-agp.c
--- a/drivers/char/agp/via-agp.c 2004-10-19 15:20:55 -07:00
+++ b/drivers/char/agp/via-agp.c 2004-10-19 15:20:55 -07:00
@@ -442,7 +442,7 @@

static int agp_via_suspend(struct pci_dev *pdev, u32 state)
{
- pci_save_state (pdev, pdev->saved_config_space);
+ pci_save_state (pdev);
pci_set_power_state (pdev, 3);

return 0;
@@ -453,7 +453,7 @@
struct agp_bridge_data *bridge = pci_get_drvdata(pdev);

pci_set_power_state (pdev, 0);
- pci_restore_state(pdev, pdev->saved_config_space);
+ pci_restore_state(pdev);

if (bridge->driver == &via_agp3_driver)
return via_configure_agp3();

-
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/