Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cf7c4c6 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8501d21f
Loading
Loading
Loading
Loading
+4 −6
Original line number Original line Diff line number Diff line
@@ -166,7 +166,7 @@ static int VEthOpen(struct net_device *pNetDevice_p)
	tEplKernel Ret = kEplSuccessful;
	tEplKernel Ret = kEplSuccessful;


	//open the device
	//open the device
//    struct net_device_stats* pStats = (struct net_device_stats*)pNetDevice_p->priv;
//	struct net_device_stats* pStats = netdev_priv(pNetDevice_p);


	//start the interface queue for the network subsystem
	//start the interface queue for the network subsystem
	netif_start_queue(pNetDevice_p);
	netif_start_queue(pNetDevice_p);
@@ -199,8 +199,7 @@ static int VEthXmit(struct sk_buff *pSkb_p, struct net_device *pNetDevice_p)
	tEplFrameInfo FrameInfo;
	tEplFrameInfo FrameInfo;


	//transmit function
	//transmit function
	struct net_device_stats *pStats =
	struct net_device_stats *pStats = netdev_priv(pNetDevice_p);
	    (struct net_device_stats *)pNetDevice_p->priv;


	//save timestemp
	//save timestemp
	pNetDevice_p->trans_start = jiffies;
	pNetDevice_p->trans_start = jiffies;
@@ -233,7 +232,7 @@ static struct net_device_stats *VEthGetStats(struct net_device *pNetDevice_p)
{
{
	EPL_DBGLVL_VETH_TRACE0("VEthGetStats\n");
	EPL_DBGLVL_VETH_TRACE0("VEthGetStats\n");


	return (struct net_device_stats *)pNetDevice_p->priv;
	return netdev_priv(pNetDevice_p);
}
}


static void VEthTimeout(struct net_device *pNetDevice_p)
static void VEthTimeout(struct net_device *pNetDevice_p)
@@ -250,8 +249,7 @@ static tEplKernel VEthRecvFrame(tEplFrameInfo * pFrameInfo_p)
{
{
	tEplKernel Ret = kEplSuccessful;
	tEplKernel Ret = kEplSuccessful;
	struct net_device *pNetDevice = pVEthNetDevice_g;
	struct net_device *pNetDevice = pVEthNetDevice_g;
	struct net_device_stats *pStats =
	struct net_device_stats *pStats = netdev_priv(pNetDevice);
	    (struct net_device_stats *)pNetDevice->priv;
	struct sk_buff *pSkb;
	struct sk_buff *pSkb;


	EPL_DBGLVL_VETH_TRACE1("VEthRecvFrame: FrameSize=%u\n",
	EPL_DBGLVL_VETH_TRACE1("VEthRecvFrame: FrameSize=%u\n",