[svn-commits] sruffell: branch linux/2.4 r10112 - in /linux/branches/2.4/drivers/dahdi: voi...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Aug 11 14:54:48 CDT 2011
Author: sruffell
Date: Thu Aug 11 14:54:44 2011
New Revision: 10112
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10112
Log:
wctc4xxp, wcte12xp, wctdm24xxp: Remove check for HAVE_NETDEV_PRIV
DAHDI currently supports kernels >= 2.6.9. netdev_priv() has been in the
mainline kernel since versions 2.6.6 so it's available in all the
supported kernels. This change is needed to compile against the 3.1 kernel.
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10096
Modified:
linux/branches/2.4/drivers/dahdi/voicebus/voicebus_net.c
linux/branches/2.4/drivers/dahdi/wctc4xxp/base.c
Modified: linux/branches/2.4/drivers/dahdi/voicebus/voicebus_net.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.4/drivers/dahdi/voicebus/voicebus_net.c?view=diff&rev=10112&r1=10111&r2=10112
==============================================================================
--- linux/branches/2.4/drivers/dahdi/voicebus/voicebus_net.c (original)
+++ linux/branches/2.4/drivers/dahdi/voicebus/voicebus_net.c Thu Aug 11 14:54:44 2011
@@ -35,22 +35,16 @@
#ifdef VOICEBUS_NET_DEBUG
-#ifdef HAVE_NETDEV_PRIV
struct voicebus_netdev_priv {
struct voicebus *vb;
};
-#endif
static inline struct voicebus *
voicebus_from_netdev(struct net_device *netdev)
{
-#ifdef HAVE_NETDEV_PRIV
struct voicebus_netdev_priv *priv;
priv = netdev_priv(netdev);
return priv->vb;
-#else
- return netdev->priv;
-#endif
}
static void *
@@ -206,23 +200,14 @@
{
int res;
struct net_device *netdev;
-# ifdef HAVE_NETDEV_PRIV
struct voicebus_netdev_priv *priv;
-# endif
const char our_mac[] = { 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff};
-# ifdef HAVE_NETDEV_PRIV
netdev = alloc_netdev(sizeof(*priv), board_name, ether_setup);
if (!netdev)
return -ENOMEM;
priv = netdev_priv(netdev);
priv->vb = vb;
-# else
- netdev = alloc_netdev(0, vb->board_name, ether_setup);
- if (!netdev)
- return -ENOMEM;
- netdev->priv = vb;
-# endif
memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
# ifdef HAVE_NET_DEVICE_OPS
netdev->netdev_ops = &vb_netdev_ops;
Modified: linux/branches/2.4/drivers/dahdi/wctc4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.4/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=10112&r1=10111&r2=10112
==============================================================================
--- linux/branches/2.4/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/branches/2.4/drivers/dahdi/wctc4xxp/base.c Thu Aug 11 14:54:44 2011
@@ -399,22 +399,16 @@
#endif
};
-#ifdef HAVE_NETDEV_PRIV
struct wcdte_netdev_priv {
struct wcdte *wc;
};
-#endif
static inline struct wcdte *
wcdte_from_netdev(struct net_device *netdev)
{
-#ifdef HAVE_NETDEV_PRIV
struct wcdte_netdev_priv *priv;
priv = netdev_priv(netdev);
return priv->wc;
-#else
- return netdev->priv;
-#endif
}
@@ -691,23 +685,14 @@
{
int res;
struct net_device *netdev;
-# ifdef HAVE_NETDEV_PRIV
struct wcdte_netdev_priv *priv;
-# endif
const char our_mac[] = { 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff};
-# ifdef HAVE_NETDEV_PRIV
netdev = alloc_netdev(sizeof(*priv), wc->board_name, ether_setup);
if (!netdev)
return -ENOMEM;
priv = netdev_priv(netdev);
priv->wc = wc;
-# else
- netdev = alloc_netdev(0, wc->board_name, ether_setup);
- if (!netdev)
- return -ENOMEM;
- netdev->priv = wc;
-# endif
memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
# ifdef HAVE_NET_DEVICE_OPS
More information about the svn-commits
mailing list