]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Wed, 1 Jul 2020 16:50:51 +0000 (22:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Jul 2020 19:58:33 +0000 (12:58 -0700)
commit4761231ac21c6f7d81c23f1ddd8800cf8ace92cb
treed0b610145ed45780129216a00eec235c06c03006
parent3644221343ee83697ed65a575ea83f3ebfbd0a76
liquidio: use generic power management

Drivers should not use legacy power management as they have to manage power
states and related operations, for the device, themselves. This driver was
handling them with the help of PCI helper functions.

With generic PM, all essentials will be handled by the PCI core. Driver
needs to do only device-specific operations.

The driver defined empty-body .suspend() and .resume() callbacks earlier.
They can now be define NULL and bind with "struct dev_pm_ops" variable.

Compile-tested only.

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