aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-01-05 18:45:21 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 16:52:41 -0500
commit4cf7c4c692f05e137b65b9a2d7abe5bcb5408820 (patch)
tree1b44b433c72be173444255a51e394693ccea072f
parent8501d21fd2d4ce5449ea0141db3d8a7766523438 (diff)
Staging: epl: fix netdev->priv b0rkage
netdev->priv is now gone, use netdev_priv() instead. This fixes the build error in the network driver within the epl stack. Cc: Daniel Krueger <daniel.krueger@systec-electronic.com> Cc: Ronald Sieber <Ronald.Sieber@systec-electronic.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/epl/VirtualEthernetLinux.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/staging/epl/VirtualEthernetLinux.c b/drivers/staging/epl/VirtualEthernetLinux.c
index 522658ba8bf9..5d838dbf73a7 100644
--- a/drivers/staging/epl/VirtualEthernetLinux.c
+++ b/drivers/staging/epl/VirtualEthernetLinux.c
@@ -166,7 +166,7 @@ static int VEthOpen(struct net_device *pNetDevice_p)
166 tEplKernel Ret = kEplSuccessful; 166 tEplKernel Ret = kEplSuccessful;
167 167
168 //open the device 168 //open the device
169// struct net_device_stats* pStats = (struct net_device_stats*)pNetDevice_p->priv; 169// struct net_device_stats* pStats = netdev_priv(pNetDevice_p);
170 170
171 //start the interface queue for the network subsystem 171 //start the interface queue for the network subsystem
172 netif_start_queue(pNetDevice_p); 172 netif_start_queue(pNetDevice_p);
@@ -199,8 +199,7 @@ static int VEthXmit(struct sk_buff *pSkb_p, struct net_device *pNetDevice_p)
199 tEplFrameInfo FrameInfo; 199 tEplFrameInfo FrameInfo;
200 200
201 //transmit function 201 //transmit function
202 struct net_device_stats *pStats = 202 struct net_device_stats *pStats = netdev_priv(pNetDevice_p);
203 (struct net_device_stats *)pNetDevice_p->priv;
204 203
205 //save timestemp 204 //save timestemp
206 pNetDevice_p->trans_start = jiffies; 205 pNetDevice_p->trans_start = jiffies;
@@ -233,7 +232,7 @@ static struct net_device_stats *VEthGetStats(struct net_device *pNetDevice_p)
233{ 232{
234 EPL_DBGLVL_VETH_TRACE0("VEthGetStats\n"); 233 EPL_DBGLVL_VETH_TRACE0("VEthGetStats\n");
235 234
236 return (struct net_device_stats *)pNetDevice_p->priv; 235 return netdev_priv(pNetDevice_p);
237} 236}
238 237
239static void VEthTimeout(struct net_device *pNetDevice_p) 238static void VEthTimeout(struct net_device *pNetDevice_p)
@@ -250,8 +249,7 @@ static tEplKernel VEthRecvFrame(tEplFrameInfo * pFrameInfo_p)
250{ 249{
251 tEplKernel Ret = kEplSuccessful; 250 tEplKernel Ret = kEplSuccessful;
252 struct net_device *pNetDevice = pVEthNetDevice_g; 251 struct net_device *pNetDevice = pVEthNetDevice_g;
253 struct net_device_stats *pStats = 252 struct net_device_stats *pStats = netdev_priv(pNetDevice);
254 (struct net_device_stats *)pNetDevice->priv;
255 struct sk_buff *pSkb; 253 struct sk_buff *pSkb;
256 254
257 EPL_DBGLVL_VETH_TRACE1("VEthRecvFrame: FrameSize=%u\n", 255 EPL_DBGLVL_VETH_TRACE1("VEthRecvFrame: FrameSize=%u\n",