diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2011-02-10 06:54:04 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-11 11:38:43 -0800 |
commit | 0303adeee3d6740cd78a71c0f40946b4886ceaa3 (patch) | |
tree | 23621734cc21051f27e480a0c6764c250d40a93d /drivers/net/atl1c/atl1c_main.c | |
parent | 43067ed8aecac4410a0a629e504629ebece35206 (diff) | |
download | op-kernel-dev-0303adeee3d6740cd78a71c0f40946b4886ceaa3.zip op-kernel-dev-0303adeee3d6740cd78a71c0f40946b4886ceaa3.tar.gz |
atl1c: Do not call device_init_wakeup() in atl1c_probe()
The atl1c driver shouldn't call device_init_wakeup() in its probe
routine with the second argument equal to 1, because for PCI devices
the wakeup capability setting is initialized as appropriate by the
PCI subsystem. Remove the potentially harmful call.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atl1c/atl1c_main.c')
-rw-r--r-- | drivers/net/atl1c/atl1c_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/atl1c/atl1c_main.c b/drivers/net/atl1c/atl1c_main.c index 3824382..e60595f 100644 --- a/drivers/net/atl1c/atl1c_main.c +++ b/drivers/net/atl1c/atl1c_main.c @@ -2718,7 +2718,6 @@ static int __devinit atl1c_probe(struct pci_dev *pdev, goto err_reset; } - device_init_wakeup(&pdev->dev, 1); /* reset the controller to * put the device in a known good starting state */ err = atl1c_phy_init(&adapter->hw); |