aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-12-28 15:49:40 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2008-12-28 15:49:40 -0500
commit0191b625ca5a46206d2fb862bb08f36f2fcb3b31 (patch)
tree454d1842b1833d976da62abcbd5c47521ebe9bd7 /drivers/media
parent54a696bd07c14d3b1192d03ce7269bc59b45209a (diff)
parenteb56092fc168bf5af199d47af50c0d84a96db898 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1429 commits) net: Allow dependancies of FDDI & Tokenring to be modular. igb: Fix build warning when DCA is disabled. net: Fix warning fallout from recent NAPI interface changes. gro: Fix potential use after free sfc: If AN is enabled, always read speed/duplex from the AN advertising bits sfc: When disabling the NIC, close the device rather than unregistering it sfc: SFT9001: Add cable diagnostics sfc: Add support for multiple PHY self-tests sfc: Merge top-level functions for self-tests sfc: Clean up PHY mode management in loopback self-test sfc: Fix unreliable link detection in some loopback modes sfc: Generate unique names for per-NIC workqueues 802.3ad: use standard ethhdr instead of ad_header 802.3ad: generalize out mac address initializer 802.3ad: initialize ports LACPDU from const initializer 802.3ad: remove typedef around ad_system 802.3ad: turn ports is_individual into a bool 802.3ad: turn ports is_enabled into a bool 802.3ad: make ntt bool ixgbe: Fix set_ringparam in ixgbe to use the same memory pools. ... Fixed trivial IPv4/6 address printing conflicts in fs/cifs/connect.c due to the conversion to %pI (in this networking merge) and the addition of doing IPv6 addresses (from the earlier merge of CIFS).
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/b2c2/flexcop.c2
-rw-r--r--drivers/media/dvb/bt8xx/dst.c4
-rw-r--r--drivers/media/dvb/dm1105/dm1105.c3
-rw-r--r--drivers/media/dvb/dvb-core/dvb_net.c37
-rw-r--r--drivers/media/dvb/dvb-usb/dvb-usb-dvb.c5
-rw-r--r--drivers/media/dvb/pluto2/pluto2.c3
6 files changed, 24 insertions, 30 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop.c b/drivers/media/dvb/b2c2/flexcop.c
index 5f79c8dc3836..676413a915b4 100644
--- a/drivers/media/dvb/b2c2/flexcop.c
+++ b/drivers/media/dvb/b2c2/flexcop.c
@@ -270,7 +270,7 @@ int flexcop_device_initialize(struct flexcop_device *fc)
270 /* do the MAC address reading after initializing the dvb_adapter */ 270 /* do the MAC address reading after initializing the dvb_adapter */
271 if (fc->get_mac_addr(fc, 0) == 0) { 271 if (fc->get_mac_addr(fc, 0) == 0) {
272 u8 *b = fc->dvb_adapter.proposed_mac; 272 u8 *b = fc->dvb_adapter.proposed_mac;
273 info("MAC address = %02x:%02x:%02x:%02x:%02x:%02x", b[0],b[1],b[2],b[3],b[4],b[5]); 273 info("MAC address = %pM", b);
274 flexcop_set_mac_filter(fc,b); 274 flexcop_set_mac_filter(fc,b);
275 flexcop_mac_filter_ctrl(fc,1); 275 flexcop_mac_filter_ctrl(fc,1);
276 } else 276 } else
diff --git a/drivers/media/dvb/bt8xx/dst.c b/drivers/media/dvb/bt8xx/dst.c
index aa3db57d32d9..29e8f1546ab6 100644
--- a/drivers/media/dvb/bt8xx/dst.c
+++ b/drivers/media/dvb/bt8xx/dst.c
@@ -917,9 +917,7 @@ static int dst_get_mac(struct dst_state *state)
917 } 917 }
918 memset(&state->mac_address, '\0', 8); 918 memset(&state->mac_address, '\0', 8);
919 memcpy(&state->mac_address, &state->rxbuffer, 6); 919 memcpy(&state->mac_address, &state->rxbuffer, 6);
920 dprintk(verbose, DST_ERROR, 1, "MAC Address=[%02x:%02x:%02x:%02x:%02x:%02x]", 920 dprintk(verbose, DST_ERROR, 1, "MAC Address=[%pM]", state->mac_address);
921 state->mac_address[0], state->mac_address[1], state->mac_address[2],
922 state->mac_address[4], state->mac_address[5], state->mac_address[6]);
923 921
924 return 0; 922 return 0;
925} 923}
diff --git a/drivers/media/dvb/dm1105/dm1105.c b/drivers/media/dvb/dm1105/dm1105.c
index c1d92f838ca8..a21ce9edcc7e 100644
--- a/drivers/media/dvb/dm1105/dm1105.c
+++ b/drivers/media/dvb/dm1105/dm1105.c
@@ -697,8 +697,7 @@ static void __devinit dm1105dvb_read_mac(struct dm1105dvb *dm1105dvb, u8 *mac)
697 }; 697 };
698 698
699 dm1105_i2c_xfer(&dm1105dvb->i2c_adap, msg , 2); 699 dm1105_i2c_xfer(&dm1105dvb->i2c_adap, msg , 2);
700 dev_info(&dm1105dvb->pdev->dev, "MAC %02x:%02x:%02x:%02x:%02x:%02x\n", 700 dev_info(&dm1105dvb->pdev->dev, "MAC %pM\n", mac);
701 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
702} 701}
703 702
704static int __devinit dm1105_probe(struct pci_dev *pdev, 703static int __devinit dm1105_probe(struct pci_dev *pdev,
diff --git a/drivers/media/dvb/dvb-core/dvb_net.c b/drivers/media/dvb/dvb-core/dvb_net.c
index c93019ca519e..03fd9dd5c685 100644
--- a/drivers/media/dvb/dvb-core/dvb_net.c
+++ b/drivers/media/dvb/dvb-core/dvb_net.c
@@ -345,7 +345,7 @@ static inline void reset_ule( struct dvb_net_priv *p )
345 */ 345 */
346static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len ) 346static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len )
347{ 347{
348 struct dvb_net_priv *priv = dev->priv; 348 struct dvb_net_priv *priv = netdev_priv(dev);
349 unsigned long skipped = 0L; 349 unsigned long skipped = 0L;
350 const u8 *ts, *ts_end, *from_where = NULL; 350 const u8 *ts, *ts_end, *from_where = NULL;
351 u8 ts_remain = 0, how_much = 0, new_ts = 1; 351 u8 ts_remain = 0, how_much = 0, new_ts = 1;
@@ -460,8 +460,8 @@ static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len )
460 /* Drop partly decoded SNDU, reset state, resync on PUSI. */ 460 /* Drop partly decoded SNDU, reset state, resync on PUSI. */
461 if (priv->ule_skb) { 461 if (priv->ule_skb) {
462 dev_kfree_skb( priv->ule_skb ); 462 dev_kfree_skb( priv->ule_skb );
463 ((struct dvb_net_priv *) dev->priv)->stats.rx_errors++; 463 priv->stats.rx_errors++;
464 ((struct dvb_net_priv *) dev->priv)->stats.rx_frame_errors++; 464 priv->stats.rx_frame_errors++;
465 } 465 }
466 reset_ule(priv); 466 reset_ule(priv);
467 priv->need_pusi = 1; 467 priv->need_pusi = 1;
@@ -573,7 +573,7 @@ static void dvb_net_ule( struct net_device *dev, const u8 *buf, size_t buf_len )
573 if (priv->ule_skb == NULL) { 573 if (priv->ule_skb == NULL) {
574 printk(KERN_NOTICE "%s: Memory squeeze, dropping packet.\n", 574 printk(KERN_NOTICE "%s: Memory squeeze, dropping packet.\n",
575 dev->name); 575 dev->name);
576 ((struct dvb_net_priv *)dev->priv)->stats.rx_dropped++; 576 priv->stats.rx_dropped++;
577 return; 577 return;
578 } 578 }
579 579
@@ -800,7 +800,8 @@ static void dvb_net_sec(struct net_device *dev,
800{ 800{
801 u8 *eth; 801 u8 *eth;
802 struct sk_buff *skb; 802 struct sk_buff *skb;
803 struct net_device_stats *stats = &(((struct dvb_net_priv *) dev->priv)->stats); 803 struct net_device_stats *stats =
804 &((struct dvb_net_priv *) netdev_priv(dev))->stats;
804 int snap = 0; 805 int snap = 0;
805 806
806 /* note: pkt_len includes a 32bit checksum */ 807 /* note: pkt_len includes a 32bit checksum */
@@ -917,7 +918,7 @@ static int dvb_net_filter_sec_set(struct net_device *dev,
917 struct dmx_section_filter **secfilter, 918 struct dmx_section_filter **secfilter,
918 u8 *mac, u8 *mac_mask) 919 u8 *mac, u8 *mac_mask)
919{ 920{
920 struct dvb_net_priv *priv = dev->priv; 921 struct dvb_net_priv *priv = netdev_priv(dev);
921 int ret; 922 int ret;
922 923
923 *secfilter=NULL; 924 *secfilter=NULL;
@@ -961,7 +962,7 @@ static int dvb_net_filter_sec_set(struct net_device *dev,
961static int dvb_net_feed_start(struct net_device *dev) 962static int dvb_net_feed_start(struct net_device *dev)
962{ 963{
963 int ret = 0, i; 964 int ret = 0, i;
964 struct dvb_net_priv *priv = dev->priv; 965 struct dvb_net_priv *priv = netdev_priv(dev);
965 struct dmx_demux *demux = priv->demux; 966 struct dmx_demux *demux = priv->demux;
966 unsigned char *mac = (unsigned char *) dev->dev_addr; 967 unsigned char *mac = (unsigned char *) dev->dev_addr;
967 968
@@ -1060,7 +1061,7 @@ error:
1060 1061
1061static int dvb_net_feed_stop(struct net_device *dev) 1062static int dvb_net_feed_stop(struct net_device *dev)
1062{ 1063{
1063 struct dvb_net_priv *priv = dev->priv; 1064 struct dvb_net_priv *priv = netdev_priv(dev);
1064 int i, ret = 0; 1065 int i, ret = 0;
1065 1066
1066 dprintk("%s\n", __func__); 1067 dprintk("%s\n", __func__);
@@ -1113,7 +1114,7 @@ static int dvb_net_feed_stop(struct net_device *dev)
1113 1114
1114static int dvb_set_mc_filter (struct net_device *dev, struct dev_mc_list *mc) 1115static int dvb_set_mc_filter (struct net_device *dev, struct dev_mc_list *mc)
1115{ 1116{
1116 struct dvb_net_priv *priv = dev->priv; 1117 struct dvb_net_priv *priv = netdev_priv(dev);
1117 1118
1118 if (priv->multi_num == DVB_NET_MULTICAST_MAX) 1119 if (priv->multi_num == DVB_NET_MULTICAST_MAX)
1119 return -ENOMEM; 1120 return -ENOMEM;
@@ -1165,7 +1166,7 @@ static void wq_set_multicast_list (struct work_struct *work)
1165 1166
1166static void dvb_net_set_multicast_list (struct net_device *dev) 1167static void dvb_net_set_multicast_list (struct net_device *dev)
1167{ 1168{
1168 struct dvb_net_priv *priv = dev->priv; 1169 struct dvb_net_priv *priv = netdev_priv(dev);
1169 schedule_work(&priv->set_multicast_list_wq); 1170 schedule_work(&priv->set_multicast_list_wq);
1170} 1171}
1171 1172
@@ -1185,7 +1186,7 @@ static void wq_restart_net_feed (struct work_struct *work)
1185 1186
1186static int dvb_net_set_mac (struct net_device *dev, void *p) 1187static int dvb_net_set_mac (struct net_device *dev, void *p)
1187{ 1188{
1188 struct dvb_net_priv *priv = dev->priv; 1189 struct dvb_net_priv *priv = netdev_priv(dev);
1189 struct sockaddr *addr=p; 1190 struct sockaddr *addr=p;
1190 1191
1191 memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); 1192 memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
@@ -1199,7 +1200,7 @@ static int dvb_net_set_mac (struct net_device *dev, void *p)
1199 1200
1200static int dvb_net_open(struct net_device *dev) 1201static int dvb_net_open(struct net_device *dev)
1201{ 1202{
1202 struct dvb_net_priv *priv = dev->priv; 1203 struct dvb_net_priv *priv = netdev_priv(dev);
1203 1204
1204 priv->in_use++; 1205 priv->in_use++;
1205 dvb_net_feed_start(dev); 1206 dvb_net_feed_start(dev);
@@ -1209,7 +1210,7 @@ static int dvb_net_open(struct net_device *dev)
1209 1210
1210static int dvb_net_stop(struct net_device *dev) 1211static int dvb_net_stop(struct net_device *dev)
1211{ 1212{
1212 struct dvb_net_priv *priv = dev->priv; 1213 struct dvb_net_priv *priv = netdev_priv(dev);
1213 1214
1214 priv->in_use--; 1215 priv->in_use--;
1215 return dvb_net_feed_stop(dev); 1216 return dvb_net_feed_stop(dev);
@@ -1217,7 +1218,7 @@ static int dvb_net_stop(struct net_device *dev)
1217 1218
1218static struct net_device_stats * dvb_net_get_stats(struct net_device *dev) 1219static struct net_device_stats * dvb_net_get_stats(struct net_device *dev)
1219{ 1220{
1220 return &((struct dvb_net_priv*) dev->priv)->stats; 1221 return &((struct dvb_net_priv *) netdev_priv(dev))->stats;
1221} 1222}
1222 1223
1223static const struct header_ops dvb_header_ops = { 1224static const struct header_ops dvb_header_ops = {
@@ -1287,7 +1288,7 @@ static int dvb_net_add_if(struct dvb_net *dvbnet, u16 pid, u8 feedtype)
1287 1288
1288 dvbnet->device[if_num] = net; 1289 dvbnet->device[if_num] = net;
1289 1290
1290 priv = net->priv; 1291 priv = netdev_priv(net);
1291 priv->net = net; 1292 priv->net = net;
1292 priv->demux = dvbnet->demux; 1293 priv->demux = dvbnet->demux;
1293 priv->pid = pid; 1294 priv->pid = pid;
@@ -1320,7 +1321,7 @@ static int dvb_net_remove_if(struct dvb_net *dvbnet, unsigned long num)
1320 1321
1321 if (!dvbnet->state[num]) 1322 if (!dvbnet->state[num])
1322 return -EINVAL; 1323 return -EINVAL;
1323 priv = net->priv; 1324 priv = netdev_priv(net);
1324 if (priv->in_use) 1325 if (priv->in_use)
1325 return -EBUSY; 1326 return -EBUSY;
1326 1327
@@ -1376,7 +1377,7 @@ static int dvb_net_do_ioctl(struct inode *inode, struct file *file,
1376 1377
1377 netdev = dvbnet->device[dvbnetif->if_num]; 1378 netdev = dvbnet->device[dvbnetif->if_num];
1378 1379
1379 priv_data = netdev->priv; 1380 priv_data = netdev_priv(netdev);
1380 dvbnetif->pid=priv_data->pid; 1381 dvbnetif->pid=priv_data->pid;
1381 dvbnetif->feedtype=priv_data->feedtype; 1382 dvbnetif->feedtype=priv_data->feedtype;
1382 break; 1383 break;
@@ -1427,7 +1428,7 @@ static int dvb_net_do_ioctl(struct inode *inode, struct file *file,
1427 1428
1428 netdev = dvbnet->device[dvbnetif->if_num]; 1429 netdev = dvbnet->device[dvbnetif->if_num];
1429 1430
1430 priv_data = netdev->priv; 1431 priv_data = netdev_priv(netdev);
1431 dvbnetif->pid=priv_data->pid; 1432 dvbnetif->pid=priv_data->pid;
1432 break; 1433 break;
1433 } 1434 }
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c b/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
index ce8cd0c5d831..8a7d87bcd1d9 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
+++ b/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
@@ -91,10 +91,7 @@ int dvb_usb_adapter_dvb_init(struct dvb_usb_adapter *adap, short *adapter_nums)
91 91
92 if (adap->dev->props.read_mac_address) { 92 if (adap->dev->props.read_mac_address) {
93 if (adap->dev->props.read_mac_address(adap->dev,adap->dvb_adap.proposed_mac) == 0) 93 if (adap->dev->props.read_mac_address(adap->dev,adap->dvb_adap.proposed_mac) == 0)
94 info("MAC address: %02x:%02x:%02x:%02x:%02x:%02x",adap->dvb_adap.proposed_mac[0], 94 info("MAC address: %pM",adap->dvb_adap.proposed_mac);
95 adap->dvb_adap.proposed_mac[1], adap->dvb_adap.proposed_mac[2],
96 adap->dvb_adap.proposed_mac[3], adap->dvb_adap.proposed_mac[4],
97 adap->dvb_adap.proposed_mac[5]);
98 else 95 else
99 err("MAC address reading failed."); 96 err("MAC address reading failed.");
100 } 97 }
diff --git a/drivers/media/dvb/pluto2/pluto2.c b/drivers/media/dvb/pluto2/pluto2.c
index a9653c63f4db..d101b304e9b0 100644
--- a/drivers/media/dvb/pluto2/pluto2.c
+++ b/drivers/media/dvb/pluto2/pluto2.c
@@ -560,8 +560,7 @@ static void __devinit pluto_read_mac(struct pluto *pluto, u8 *mac)
560 mac[4] = (val >> 8) & 0xff; 560 mac[4] = (val >> 8) & 0xff;
561 mac[5] = (val >> 0) & 0xff; 561 mac[5] = (val >> 0) & 0xff;
562 562
563 dev_info(&pluto->pdev->dev, "MAC %02x:%02x:%02x:%02x:%02x:%02x\n", 563 dev_info(&pluto->pdev->dev, "MAC %pM\n", mac);
564 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
565} 564}
566 565
567static int __devinit pluto_read_serial(struct pluto *pluto) 566static int __devinit pluto_read_serial(struct pluto *pluto)