aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-12-29 00:47:18 -0500
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-12-29 00:47:18 -0500
commit0a8c5395f90f06d128247844b2515c8bf3f2826b (patch)
treed95382dcdfa303b99d480c01763d6cb6767fdaca /net/dsa
parent25051158bbed127e8672b43396c71c5eb610e5f1 (diff)
parent3c92ec8ae91ecf59d88c798301833d7cf83f2179 (diff)
[XFS] Fix merge failures
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 Conflicts: fs/xfs/linux-2.6/xfs_cred.h fs/xfs/linux-2.6/xfs_globals.h fs/xfs/linux-2.6/xfs_ioctl.c fs/xfs/xfs_vnodeops.h Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'net/dsa')
-rw-r--r--net/dsa/mv88e6060.c6
-rw-r--r--net/dsa/mv88e6123_61_65.c4
-rw-r--r--net/dsa/mv88e6131.c4
-rw-r--r--net/dsa/mv88e6xxx.c2
-rw-r--r--net/dsa/slave.c2
-rw-r--r--net/dsa/tag_dsa.c1
-rw-r--r--net/dsa/tag_edsa.c1
-rw-r--r--net/dsa/tag_trailer.c1
8 files changed, 9 insertions, 12 deletions
diff --git a/net/dsa/mv88e6060.c b/net/dsa/mv88e6060.c
index 54068ef251e8..85081ae9fe89 100644
--- a/net/dsa/mv88e6060.c
+++ b/net/dsa/mv88e6060.c
@@ -222,7 +222,7 @@ static void mv88e6060_poll_link(struct dsa_switch *ds)
222 222
223 for (i = 0; i < DSA_MAX_PORTS; i++) { 223 for (i = 0; i < DSA_MAX_PORTS; i++) {
224 struct net_device *dev; 224 struct net_device *dev;
225 int port_status; 225 int uninitialized_var(port_status);
226 int link; 226 int link;
227 int speed; 227 int speed;
228 int duplex; 228 int duplex;
@@ -273,14 +273,14 @@ static struct dsa_switch_driver mv88e6060_switch_driver = {
273 .poll_link = mv88e6060_poll_link, 273 .poll_link = mv88e6060_poll_link,
274}; 274};
275 275
276int __init mv88e6060_init(void) 276static int __init mv88e6060_init(void)
277{ 277{
278 register_switch_driver(&mv88e6060_switch_driver); 278 register_switch_driver(&mv88e6060_switch_driver);
279 return 0; 279 return 0;
280} 280}
281module_init(mv88e6060_init); 281module_init(mv88e6060_init);
282 282
283void __exit mv88e6060_cleanup(void) 283static void __exit mv88e6060_cleanup(void)
284{ 284{
285 unregister_switch_driver(&mv88e6060_switch_driver); 285 unregister_switch_driver(&mv88e6060_switch_driver);
286} 286}
diff --git a/net/dsa/mv88e6123_61_65.c b/net/dsa/mv88e6123_61_65.c
index 555b164082fc..ec8c6a0482d3 100644
--- a/net/dsa/mv88e6123_61_65.c
+++ b/net/dsa/mv88e6123_61_65.c
@@ -407,14 +407,14 @@ static struct dsa_switch_driver mv88e6123_61_65_switch_driver = {
407 .get_sset_count = mv88e6123_61_65_get_sset_count, 407 .get_sset_count = mv88e6123_61_65_get_sset_count,
408}; 408};
409 409
410int __init mv88e6123_61_65_init(void) 410static int __init mv88e6123_61_65_init(void)
411{ 411{
412 register_switch_driver(&mv88e6123_61_65_switch_driver); 412 register_switch_driver(&mv88e6123_61_65_switch_driver);
413 return 0; 413 return 0;
414} 414}
415module_init(mv88e6123_61_65_init); 415module_init(mv88e6123_61_65_init);
416 416
417void __exit mv88e6123_61_65_cleanup(void) 417static void __exit mv88e6123_61_65_cleanup(void)
418{ 418{
419 unregister_switch_driver(&mv88e6123_61_65_switch_driver); 419 unregister_switch_driver(&mv88e6123_61_65_switch_driver);
420} 420}
diff --git a/net/dsa/mv88e6131.c b/net/dsa/mv88e6131.c
index 36e01eb863a0..374d46a01265 100644
--- a/net/dsa/mv88e6131.c
+++ b/net/dsa/mv88e6131.c
@@ -366,14 +366,14 @@ static struct dsa_switch_driver mv88e6131_switch_driver = {
366 .get_sset_count = mv88e6131_get_sset_count, 366 .get_sset_count = mv88e6131_get_sset_count,
367}; 367};
368 368
369int __init mv88e6131_init(void) 369static int __init mv88e6131_init(void)
370{ 370{
371 register_switch_driver(&mv88e6131_switch_driver); 371 register_switch_driver(&mv88e6131_switch_driver);
372 return 0; 372 return 0;
373} 373}
374module_init(mv88e6131_init); 374module_init(mv88e6131_init);
375 375
376void __exit mv88e6131_cleanup(void) 376static void __exit mv88e6131_cleanup(void)
377{ 377{
378 unregister_switch_driver(&mv88e6131_switch_driver); 378 unregister_switch_driver(&mv88e6131_switch_driver);
379} 379}
diff --git a/net/dsa/mv88e6xxx.c b/net/dsa/mv88e6xxx.c
index aa6c609c59f2..4e4d8b5ad03d 100644
--- a/net/dsa/mv88e6xxx.c
+++ b/net/dsa/mv88e6xxx.c
@@ -358,7 +358,7 @@ void mv88e6xxx_poll_link(struct dsa_switch *ds)
358 358
359 for (i = 0; i < DSA_MAX_PORTS; i++) { 359 for (i = 0; i < DSA_MAX_PORTS; i++) {
360 struct net_device *dev; 360 struct net_device *dev;
361 int port_status; 361 int uninitialized_var(port_status);
362 int link; 362 int link;
363 int speed; 363 int speed;
364 int duplex; 364 int duplex;
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index 1af5a79309e9..a3a410d20da0 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -352,7 +352,7 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent,
352 netif_carrier_off(slave_dev); 352 netif_carrier_off(slave_dev);
353 353
354 if (p->phy != NULL) { 354 if (p->phy != NULL) {
355 phy_attach(slave_dev, p->phy->dev.bus_id, 355 phy_attach(slave_dev, dev_name(&p->phy->dev),
356 0, PHY_INTERFACE_MODE_GMII); 356 0, PHY_INTERFACE_MODE_GMII);
357 357
358 p->phy->autoneg = AUTONEG_ENABLE; 358 p->phy->autoneg = AUTONEG_ENABLE;
diff --git a/net/dsa/tag_dsa.c b/net/dsa/tag_dsa.c
index 31866543332e..f99a019b939e 100644
--- a/net/dsa/tag_dsa.c
+++ b/net/dsa/tag_dsa.c
@@ -162,7 +162,6 @@ static int dsa_rcv(struct sk_buff *skb, struct net_device *dev,
162 skb->pkt_type = PACKET_HOST; 162 skb->pkt_type = PACKET_HOST;
163 skb->protocol = eth_type_trans(skb, skb->dev); 163 skb->protocol = eth_type_trans(skb, skb->dev);
164 164
165 skb->dev->last_rx = jiffies;
166 skb->dev->stats.rx_packets++; 165 skb->dev->stats.rx_packets++;
167 skb->dev->stats.rx_bytes += skb->len; 166 skb->dev->stats.rx_bytes += skb->len;
168 167
diff --git a/net/dsa/tag_edsa.c b/net/dsa/tag_edsa.c
index 9f4ce55eae59..328ec957f786 100644
--- a/net/dsa/tag_edsa.c
+++ b/net/dsa/tag_edsa.c
@@ -181,7 +181,6 @@ static int edsa_rcv(struct sk_buff *skb, struct net_device *dev,
181 skb->pkt_type = PACKET_HOST; 181 skb->pkt_type = PACKET_HOST;
182 skb->protocol = eth_type_trans(skb, skb->dev); 182 skb->protocol = eth_type_trans(skb, skb->dev);
183 183
184 skb->dev->last_rx = jiffies;
185 skb->dev->stats.rx_packets++; 184 skb->dev->stats.rx_packets++;
186 skb->dev->stats.rx_bytes += skb->len; 185 skb->dev->stats.rx_bytes += skb->len;
187 186
diff --git a/net/dsa/tag_trailer.c b/net/dsa/tag_trailer.c
index efd26697e716..b59132878ad1 100644
--- a/net/dsa/tag_trailer.c
+++ b/net/dsa/tag_trailer.c
@@ -98,7 +98,6 @@ static int trailer_rcv(struct sk_buff *skb, struct net_device *dev,
98 skb->pkt_type = PACKET_HOST; 98 skb->pkt_type = PACKET_HOST;
99 skb->protocol = eth_type_trans(skb, skb->dev); 99 skb->protocol = eth_type_trans(skb, skb->dev);
100 100
101 skb->dev->last_rx = jiffies;
102 skb->dev->stats.rx_packets++; 101 skb->dev->stats.rx_packets++;
103 skb->dev->stats.rx_bytes += skb->len; 102 skb->dev->stats.rx_bytes += skb->len;
104 103