Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 724f8805 authored by David S. Miller's avatar David S. Miller
Browse files

jme: Fix warnings with CONFIG_PM disabled.



drivers/net/jme.c:1598: warning: ‘jme_set_100m_half’ defined but not used
drivers/net/jme.c:1618: warning: ‘jme_wait_link’ defined but not used

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6dc0c97f
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1593,6 +1593,7 @@ jme_open(struct net_device *netdev)
	return rc;
	return rc;
}
}


#ifdef CONFIG_PM
static void
static void
jme_set_100m_half(struct jme_adapter *jme)
jme_set_100m_half(struct jme_adapter *jme)
{
{
@@ -1625,6 +1626,7 @@ jme_wait_link(struct jme_adapter *jme)
		phylink = jme_linkstat_from_phy(jme);
		phylink = jme_linkstat_from_phy(jme);
	}
	}
}
}
#endif


static inline void
static inline void
jme_phy_off(struct jme_adapter *jme)
jme_phy_off(struct jme_adapter *jme)
@@ -2912,6 +2914,7 @@ jme_remove_one(struct pci_dev *pdev)


}
}


#ifdef CONFIG_PM
static int
static int
jme_suspend(struct pci_dev *pdev, pm_message_t state)
jme_suspend(struct pci_dev *pdev, pm_message_t state)
{
{
@@ -2991,6 +2994,7 @@ jme_resume(struct pci_dev *pdev)


	return 0;
	return 0;
}
}
#endif


static struct pci_device_id jme_pci_tbl[] = {
static struct pci_device_id jme_pci_tbl[] = {
	{ PCI_VDEVICE(JMICRON, PCI_DEVICE_ID_JMICRON_JMC250) },
	{ PCI_VDEVICE(JMICRON, PCI_DEVICE_ID_JMICRON_JMC250) },