natsemi: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Wed, 1 Jul 2020 16:50:57 +0000 (22:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Jul 2020 19:58:33 +0000 (12:58 -0700)
commit40c1b1ee5599e3f30416563ebe1568b414febd81
tree26c3ae2498ab1472e6a7c7000308b28136505919
parent4c2ad1263b4dd2bfdc805afdbf9b27cf7f10895e
natsemi: 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.

Thus, there is no need to call the PCI helper functions like
pci_enable_device, which is not recommended. Hence, removed.

Compile-tested only.

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