summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 17:50:09 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 17:50:09 -0300
commit8b584409a874a2ad9b940cc4825f87184a98d7d6 (patch)
tree324948deb1c369bce977220e35ddd3e494e5ddfb /linux/drivers/media
parentabb5bd3be0a8848a352da170173f833f4c648098 (diff)
downloadmediapointer-dvb-s2-8b584409a874a2ad9b940cc4825f87184a98d7d6.tar.gz
mediapointer-dvb-s2-8b584409a874a2ad9b940cc4825f87184a98d7d6.tar.bz2
Spin lock on network changed on 2.6.18
From: Mauro Carvalho Chehab <mchehab@infradead.org> kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/cinergyT2/cinergyT2.c2
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_net.c8
2 files changed, 9 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
index f3fde4545..631120de7 100644
--- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -569,7 +569,7 @@ static unsigned int cinergyt2_poll (struct file *file, struct poll_table_struct
poll_wait(file, &cinergyt2->poll_wq, wait);
if (cinergyt2->pending_fe_events != 0)
- mask |= (POLLIN | POLLRDNORM | POLLPRI);
+ mask |= (POLLIN | POLLRDNORM | POLLPRI);
mutex_unlock(&cinergyt2->sem);
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_net.c b/linux/drivers/media/dvb/dvb-core/dvb_net.c
index a1989e336..eb666e1e0 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_net.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_net.c
@@ -1137,7 +1137,11 @@ static void wq_set_multicast_list (void *data)
dvb_net_feed_stop(dev);
priv->rx_mode = RX_MODE_UNI;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
spin_lock_bh(&dev->xmit_lock);
+#else
+ netif_tx_lock_bh(dev);
+#endif
if (dev->flags & IFF_PROMISC) {
dprintk("%s: promiscuous mode\n", dev->name);
@@ -1162,7 +1166,11 @@ static void wq_set_multicast_list (void *data)
}
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
spin_unlock_bh(&dev->xmit_lock);
+#else
+ netif_tx_unlock_bh(dev);
+#endif
dvb_net_feed_start(dev);
}