Commit c7348091 authored by zhong jiang's avatar zhong jiang Committed by David S. Miller

net: ethernet: Fix a unused function warning.

Fix the following compile warning:

drivers/net/ethernet/microchip/lan743x_main.c:2964:12: warning: ‘lan743x_pm_suspend’ defined but not used [-Wunused-function]
 static int lan743x_pm_suspend(struct device *dev)
drivers/net/ethernet/microchip/lan743x_main.c:2987:12: warning: ‘lan743x_pm_resume’ defined but not used [-Wunused-function]
 static int lan743x_pm_resume(struct device *dev)
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ddca24df
...@@ -2850,7 +2850,7 @@ static void lan743x_pcidev_shutdown(struct pci_dev *pdev) ...@@ -2850,7 +2850,7 @@ static void lan743x_pcidev_shutdown(struct pci_dev *pdev)
lan743x_hardware_cleanup(adapter); lan743x_hardware_cleanup(adapter);
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM_SLEEP
static u16 lan743x_pm_wakeframe_crc16(const u8 *buf, int len) static u16 lan743x_pm_wakeframe_crc16(const u8 *buf, int len)
{ {
return bitrev16(crc16(0xFFFF, buf, len)); return bitrev16(crc16(0xFFFF, buf, len));
...@@ -3016,7 +3016,7 @@ static int lan743x_pm_resume(struct device *dev) ...@@ -3016,7 +3016,7 @@ static int lan743x_pm_resume(struct device *dev)
static const struct dev_pm_ops lan743x_pm_ops = { static const struct dev_pm_ops lan743x_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(lan743x_pm_suspend, lan743x_pm_resume) SET_SYSTEM_SLEEP_PM_OPS(lan743x_pm_suspend, lan743x_pm_resume)
}; };
#endif /*CONFIG_PM */ #endif /* CONFIG_PM_SLEEP */
static const struct pci_device_id lan743x_pcidev_tbl[] = { static const struct pci_device_id lan743x_pcidev_tbl[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_SMSC, PCI_DEVICE_ID_SMSC_LAN7430) }, { PCI_DEVICE(PCI_VENDOR_ID_SMSC, PCI_DEVICE_ID_SMSC_LAN7430) },
...@@ -3028,7 +3028,7 @@ static struct pci_driver lan743x_pcidev_driver = { ...@@ -3028,7 +3028,7 @@ static struct pci_driver lan743x_pcidev_driver = {
.id_table = lan743x_pcidev_tbl, .id_table = lan743x_pcidev_tbl,
.probe = lan743x_pcidev_probe, .probe = lan743x_pcidev_probe,
.remove = lan743x_pcidev_remove, .remove = lan743x_pcidev_remove,
#ifdef CONFIG_PM #ifdef CONFIG_PM_SLEEP
.driver.pm = &lan743x_pm_ops, .driver.pm = &lan743x_pm_ops,
#endif #endif
.shutdown = lan743x_pcidev_shutdown, .shutdown = lan743x_pcidev_shutdown,
......
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