Skip to content

Commit aab6fb8

Browse files
cooldaviddavem330
authored andcommitted
jme: Fix compile warning introduced by new pm macro
SIMPLE_DEV_PM_OPS is using SET_SYSTEM_SLEEP_PM_OPS and SET_SYSTEM_SLEEP_PM_OPS is empty when CONFIG_PM_SLEEP is not defined. Switching #ifdef CONFIG_PM to #ifdef CONFIG_PM_SLEEP Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b21f3c7 commit aab6fb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/jme.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3135,7 +3135,7 @@ jme_shutdown(struct pci_dev *pdev)
31353135
pci_pme_active(pdev, true);
31363136
}
31373137

3138-
#ifdef CONFIG_PM
3138+
#ifdef CONFIG_PM_SLEEP
31393139
static int jme_suspend(struct device *dev)
31403140
{
31413141
struct pci_dev *pdev = to_pci_dev(dev);

0 commit comments

Comments
 (0)