Skip to content

Commit

Permalink
Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/ke…
Browse files Browse the repository at this point in the history
…rnel/git/gregkh/staging

* 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
  staging: fix more ET131X build errors
  staging: et131x depends on NET
  staging: slicoss depends on NET
  linux-next: et131x: Fix build error when CONFIG_PM_SLEEP not enabled
  • Loading branch information
Linus Torvalds committed Nov 22, 2011
2 parents 3c68814 + c9fb041 commit bbbc479
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion drivers/staging/et131x/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
config ET131X
tristate "Agere ET-1310 Gigabit Ethernet support"
depends on PCI
depends on PCI && NET && NETDEVICES
select PHYLIB
default n
---help---
This driver supports Agere ET-1310 ethernet adapters.
Expand Down
12 changes: 6 additions & 6 deletions drivers/staging/et131x/et131x.c
Original file line number Diff line number Diff line change
Expand Up @@ -4469,6 +4469,12 @@ static int et131x_resume(struct device *dev)
return 0;
}

static SIMPLE_DEV_PM_OPS(et131x_pm_ops, et131x_suspend, et131x_resume);
#define ET131X_PM_OPS (&et131x_pm_ops)
#else
#define ET131X_PM_OPS NULL
#endif

/* ISR functions */

/**
Expand Down Expand Up @@ -5470,12 +5476,6 @@ static int __devinit et131x_pci_setup(struct pci_dev *pdev,
return result;
}

static SIMPLE_DEV_PM_OPS(et131x_pm_ops, et131x_suspend, et131x_resume);
#define ET131X_PM_OPS (&et131x_pm_ops)
#else
#define ET131X_PM_OPS NULL
#endif

static DEFINE_PCI_DEVICE_TABLE(et131x_pci_table) = {
{ PCI_VDEVICE(ATT, ET131X_PCI_DEVICE_ID_GIG), 0UL},
{ PCI_VDEVICE(ATT, ET131X_PCI_DEVICE_ID_FAST), 0UL},
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/slicoss/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config SLICOSS
tristate "Alacritech Gigabit IS-NIC support"
depends on PCI && X86
depends on PCI && X86 && NET
default n
help
This driver supports Alacritech's IS-NIC gigabit ethernet cards.
Expand Down

0 comments on commit bbbc479

Please sign in to comment.