lkml.org 
[lkml]   [2005]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Fix suspend/resume on via-velocity
Hi!

This fixes suspend-resume on via-velocity. It was confused
w.r.t. pointers... Now uses netdev_priv(). [Well, someone should run
sed over that driver, there are many more dev->priv]. Please apply,

Signed-off-by: Pavel Machek <pavel@suse.cz>
Pavel


--- clean/drivers/net/via-velocity.c 2005-01-22 21:24:52.000000000 +0100
+++ linux/drivers/net/via-velocity.c 2005-03-12 20:07:29.000000000 +0100
@@ -3210,9 +3210,10 @@
return 0;
}

static int velocity_suspend(struct pci_dev *pdev, pm_message_t state)
{
- struct velocity_info *vptr = pci_get_drvdata(pdev);
+ struct net_device *dev = pci_get_drvdata(pdev);
+ struct velocity_info *vptr = netdev_priv(dev);
unsigned long flags;

if(!netif_running(vptr->dev))
@@ -3245,7 +3246,8 @@

static int velocity_resume(struct pci_dev *pdev)
{
- struct velocity_info *vptr = pci_get_drvdata(pdev);
+ struct net_device *dev = pci_get_drvdata(pdev);
+ struct velocity_info *vptr = netdev_priv(dev);
unsigned long flags;
int i;

--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:11    [W:1.143 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site