Commit 946df10d authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Jakub Kicinski

ptp_pch: Remove unused pch_pm_ops

The default values for hooks in the driver.pm are NULLs.
Hence drop unused pch_pm_ops.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220207210730.75252-6-andriy.shevchenko@linux.intel.comAcked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 874f50c8
...@@ -447,9 +447,6 @@ static const struct ptp_clock_info ptp_pch_caps = { ...@@ -447,9 +447,6 @@ static const struct ptp_clock_info ptp_pch_caps = {
.enable = ptp_pch_enable, .enable = ptp_pch_enable,
}; };
#define pch_suspend NULL
#define pch_resume NULL
static void pch_remove(struct pci_dev *pdev) static void pch_remove(struct pci_dev *pdev)
{ {
struct pch_dev *chip = pci_get_drvdata(pdev); struct pch_dev *chip = pci_get_drvdata(pdev);
...@@ -540,14 +537,11 @@ static const struct pci_device_id pch_ieee1588_pcidev_id[] = { ...@@ -540,14 +537,11 @@ static const struct pci_device_id pch_ieee1588_pcidev_id[] = {
}; };
MODULE_DEVICE_TABLE(pci, pch_ieee1588_pcidev_id); MODULE_DEVICE_TABLE(pci, pch_ieee1588_pcidev_id);
static SIMPLE_DEV_PM_OPS(pch_pm_ops, pch_suspend, pch_resume);
static struct pci_driver pch_driver = { static struct pci_driver pch_driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.id_table = pch_ieee1588_pcidev_id, .id_table = pch_ieee1588_pcidev_id,
.probe = pch_probe, .probe = pch_probe,
.remove = pch_remove, .remove = pch_remove,
.driver.pm = &pch_pm_ops,
}; };
module_pci_driver(pch_driver); module_pci_driver(pch_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment