vxge: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Wed, 1 Jul 2020 16:50:56 +0000 (22:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Jul 2020 19:58:33 +0000 (12:58 -0700)
commit4c2ad1263b4dd2bfdc805afdbf9b27cf7f10895e
treebaf9cb5b05868d9bdedd629261d1143bfe83169d
parent64120615d140c88d110c6ffc964d9e6cd8bf5395
vxge: use generic power management

With legacy PM, drivers themselves were responsible for managing the
device's power states and takes care of register states.

After upgrading to the generic structure, PCI core will take care of
required tasks and drivers should do only device-specific operations.

Use "struct dev_pm_ops" variable to bind the callbacks.

Compile-tested only.

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