Skip to content

Commit

Permalink
jme: Fix warnings with CONFIG_PM disabled.
Browse files Browse the repository at this point in the history
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: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Oct 9, 2008
1 parent 6dc0c97 commit 724f880
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/jme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,7 @@ jme_open(struct net_device *netdev)
return rc;
}

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

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

}

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

return 0;
}
#endif

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

0 comments on commit 724f880

Please sign in to comment.