bnx2x: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Wed, 24 Jun 2020 17:51:17 +0000 (23:21 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jun 2020 19:14:09 +0000 (12:14 -0700)
commit4ced637bd24ac5f824eb8169324712f0bcd50d92
tree0b0745b4ca487fe59a8be4cd8dd1f6444de5ab1a
parent7bed14551659875e1cd23a7c0266394a29a773b3
bnx2x: 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.

The driver was also calling bnx2x_set_power_state() to set the power state
of the device by changing the device's registers' value. It is no more
needed.

Compile-tested only.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Acked-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c