diff options
author | Vaibhav Gupta <vaibhavgupta40@gmail.com> | 2020-07-28 09:58:10 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-28 12:56:52 -0700 |
commit | f21bbd63308f677f0f32471cfa7dcdae17fd14da (patch) | |
tree | c83adc16b3de56b40d5202eb17d99124e5b42567 /drivers/net/wan | |
parent | 5e619d73e6797ed9f2554a1bf996d52d8c91ca50 (diff) | |
download | lwn-f21bbd63308f677f0f32471cfa7dcdae17fd14da.tar.gz lwn-f21bbd63308f677f0f32471cfa7dcdae17fd14da.zip |
farsync: use generic power management
The .suspend() and .resume() callbacks are not defined for this driver.
Still, their power management structure follows the legacy framework. To
bring it under the generic framework, simply remove the binding of
callbacks from "struct pci_driver".
Change code indentation from space to tab in "struct pci_driver".
Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/farsync.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c index 0196b7fd130d..fe4650260bc6 100644 --- a/drivers/net/wan/farsync.c +++ b/drivers/net/wan/farsync.c @@ -2636,12 +2636,10 @@ fst_remove_one(struct pci_dev *pdev) } static struct pci_driver fst_driver = { - .name = FST_NAME, - .id_table = fst_pci_dev_id, - .probe = fst_add_one, - .remove = fst_remove_one, - .suspend = NULL, - .resume = NULL, + .name = FST_NAME, + .id_table = fst_pci_dev_id, + .probe = fst_add_one, + .remove = fst_remove_one, }; static int __init |