summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMark Einon <mark.einon@gmail.com>2011-10-23 10:22:45 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-23 11:35:12 +0200
commitac8f4837f2240c692b968cdeaa3275ecc2ed173f (patch)
treeaee01677ee30759ce6f174fd3552249a8cde0925 /drivers
parent5ad5be581ed19becd184731fd0e9711abc5650c6 (diff)
downloadlinux-ac8f4837f2240c692b968cdeaa3275ecc2ed173f.tar.gz
linux-ac8f4837f2240c692b968cdeaa3275ecc2ed173f.tar.bz2
linux-ac8f4837f2240c692b968cdeaa3275ecc2ed173f.zip
staging: et131x: Remove call to find pci pm capability
pci_find_capability is called, but not used and is now redundant as power management is handled elsewhere. Removed. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/et131x/et131x.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c
index f521e3319aab..9383c5c0c4f0 100644
--- a/drivers/staging/et131x/et131x.c
+++ b/drivers/staging/et131x/et131x.c
@@ -4356,7 +4356,6 @@ static int __devinit et131x_pci_setup(struct pci_dev *pdev,
const struct pci_device_id *ent)
{
int result;
- int pm_cap;
struct net_device *netdev;
struct et131x_adapter *adapter;
int ii;
@@ -4380,19 +4379,6 @@ static int __devinit et131x_pci_setup(struct pci_dev *pdev,
pci_set_master(pdev);
- /* Query PCI for Power Mgmt Capabilities
- *
- * NOTE: Now reading PowerMgmt in another location; is this still
- * needed?
- */
- pm_cap = pci_find_capability(pdev, PCI_CAP_ID_PM);
- if (!pm_cap) {
- dev_err(&pdev->dev,
- "Cannot find Power Management capabilities\n");
- result = -EIO;
- goto err_release_res;
- }
-
/* Check the DMA addressing support of this device */
if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64))) {
result = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64));