Skip to content

Commit f21bbd6

Browse files
VARoDeKdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5e619d7 commit f21bbd6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

drivers/net/wan/farsync.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2636,12 +2636,10 @@ fst_remove_one(struct pci_dev *pdev)
26362636
}
26372637

26382638
static struct pci_driver fst_driver = {
2639-
.name = FST_NAME,
2640-
.id_table = fst_pci_dev_id,
2641-
.probe = fst_add_one,
2642-
.remove = fst_remove_one,
2643-
.suspend = NULL,
2644-
.resume = NULL,
2639+
.name = FST_NAME,
2640+
.id_table = fst_pci_dev_id,
2641+
.probe = fst_add_one,
2642+
.remove = fst_remove_one,
26452643
};
26462644

26472645
static int __init

0 commit comments

Comments
 (0)