]> git.baikalelectronics.ru Git - kernel.git/commit
sc92031: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Thu, 30 Jul 2020 06:53:34 +0000 (12:23 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2020 00:43:01 +0000 (17:43 -0700)
commit27276f902b86154f19a5b1d75d940bc92c39ac1d
treecce089aa6ca74139492fe645c6ac4da9ec71833f
parent1144fea66dca009e906b890193c81353e96aa0a0
sc92031: use generic power management

Drivers using legacy power management .suspen()/.resume() callbacks
have to manage PCI states and device's PM states themselves. They also
need to take care of standard configuration registers.

Switch to generic power management framework using a single
"struct dev_pm_ops" variable to take the unnecessary load from the driver.
This also avoids the need for the driver to directly call most of the PCI
helper functions and device power state control functions, as through
the generic framework PCI Core takes care of the necessary operations,
and drivers are required to do only device-specific jobs.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/silan/sc92031.c