agp/efficeon: Convert to generic power management
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 25 Oct 2022 20:38:45 +0000 (15:38 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 26 Oct 2022 16:25:16 +0000 (11:25 -0500)
commit94e9f9a23fe4b093cd5a8b292165fad840242b79
tree04d72de0be71c579c6ef756faf8d028fb42a8412
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
agp/efficeon: Convert to generic power management

Convert agpgart-efficeon from legacy PCI power management to the generic
power management framework.

Previously agpgart-efficeon used legacy PCI power management, which means
agp_efficeon_suspend() and agp_efficeon_resume() were responsible for both
device-specific things and generic PCI things like saving and restoring
config space and managing power state.

In this case, agp_efficeon_suspend() was empty, and agp_efficeon_resume()
already did only device-specific things, so simply convert it to take a
struct device * instead of a struct pci_dev *.

Based on 0aeddbd0cb07 ("via-agp: convert to generic power management") by
Vaibhav Gupta <vaibhavgupta40@gmail.com>.

Link: https://lore.kernel.org/r/20221025203852.681822-2-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Dave Airlie <airlied@redhat.com>
drivers/char/agp/efficeon-agp.c