diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-05 20:42:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-05 20:42:41 -0500 |
commit | 61edab8d144ae7b4d7206b91adec947579a73c0a (patch) | |
tree | 61a38f0e119405eb3978bb30df78ff25ab690809 | |
parent | 2655e2cee2d77459fcb7e10228259e4ee0328697 (diff) | |
parent | f2511f13daaf00fdd206bee7b108f75923a613c6 (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6:
phylib: Silence driver registration
phylib: Add ID for Marvell 88E1240
82596: free nonexistent resource fix
SUNHME: Fix missing NETIF_F_VLAN_CHALLENGED on PCI happy meals
-rw-r--r-- | drivers/net/82596.c | 3 | ||||
-rw-r--r-- | drivers/net/phy/marvell.c | 23 | ||||
-rw-r--r-- | drivers/net/phy/phy_device.c | 2 | ||||
-rw-r--r-- | drivers/net/sunhme.c | 4 |
4 files changed, 23 insertions, 9 deletions
diff --git a/drivers/net/82596.c b/drivers/net/82596.c index bb30d5be7824..2797da7eeee6 100644 --- a/drivers/net/82596.c +++ b/drivers/net/82596.c | |||
@@ -1192,6 +1192,8 @@ struct net_device * __init i82596_probe(int unit) | |||
1192 | goto out; | 1192 | goto out; |
1193 | } | 1193 | } |
1194 | 1194 | ||
1195 | dev->base_addr = ioaddr; | ||
1196 | |||
1195 | for (i = 0; i < 8; i++) { | 1197 | for (i = 0; i < 8; i++) { |
1196 | eth_addr[i] = inb(ioaddr + 8 + i); | 1198 | eth_addr[i] = inb(ioaddr + 8 + i); |
1197 | checksum += eth_addr[i]; | 1199 | checksum += eth_addr[i]; |
@@ -1209,7 +1211,6 @@ struct net_device * __init i82596_probe(int unit) | |||
1209 | goto out1; | 1211 | goto out1; |
1210 | } | 1212 | } |
1211 | 1213 | ||
1212 | dev->base_addr = ioaddr; | ||
1213 | dev->irq = 10; | 1214 | dev->irq = 10; |
1214 | } | 1215 | } |
1215 | #endif | 1216 | #endif |
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index d2ede5ff9fff..035fd41fb61f 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c | |||
@@ -265,7 +265,7 @@ static struct phy_driver marvell_drivers[] = { | |||
265 | .read_status = &genphy_read_status, | 265 | .read_status = &genphy_read_status, |
266 | .ack_interrupt = &marvell_ack_interrupt, | 266 | .ack_interrupt = &marvell_ack_interrupt, |
267 | .config_intr = &marvell_config_intr, | 267 | .config_intr = &marvell_config_intr, |
268 | .driver = {.owner = THIS_MODULE,}, | 268 | .driver = { .owner = THIS_MODULE }, |
269 | }, | 269 | }, |
270 | { | 270 | { |
271 | .phy_id = 0x01410c90, | 271 | .phy_id = 0x01410c90, |
@@ -278,7 +278,7 @@ static struct phy_driver marvell_drivers[] = { | |||
278 | .read_status = &genphy_read_status, | 278 | .read_status = &genphy_read_status, |
279 | .ack_interrupt = &marvell_ack_interrupt, | 279 | .ack_interrupt = &marvell_ack_interrupt, |
280 | .config_intr = &marvell_config_intr, | 280 | .config_intr = &marvell_config_intr, |
281 | .driver = {.owner = THIS_MODULE,}, | 281 | .driver = { .owner = THIS_MODULE }, |
282 | }, | 282 | }, |
283 | { | 283 | { |
284 | .phy_id = 0x01410cc0, | 284 | .phy_id = 0x01410cc0, |
@@ -291,7 +291,7 @@ static struct phy_driver marvell_drivers[] = { | |||
291 | .read_status = &genphy_read_status, | 291 | .read_status = &genphy_read_status, |
292 | .ack_interrupt = &marvell_ack_interrupt, | 292 | .ack_interrupt = &marvell_ack_interrupt, |
293 | .config_intr = &marvell_config_intr, | 293 | .config_intr = &marvell_config_intr, |
294 | .driver = {.owner = THIS_MODULE,}, | 294 | .driver = { .owner = THIS_MODULE }, |
295 | }, | 295 | }, |
296 | { | 296 | { |
297 | .phy_id = 0x01410cd0, | 297 | .phy_id = 0x01410cd0, |
@@ -304,8 +304,21 @@ static struct phy_driver marvell_drivers[] = { | |||
304 | .read_status = &genphy_read_status, | 304 | .read_status = &genphy_read_status, |
305 | .ack_interrupt = &marvell_ack_interrupt, | 305 | .ack_interrupt = &marvell_ack_interrupt, |
306 | .config_intr = &marvell_config_intr, | 306 | .config_intr = &marvell_config_intr, |
307 | .driver = {.owner = THIS_MODULE,}, | 307 | .driver = { .owner = THIS_MODULE }, |
308 | } | 308 | }, |
309 | { | ||
310 | .phy_id = 0x01410e30, | ||
311 | .phy_id_mask = 0xfffffff0, | ||
312 | .name = "Marvell 88E1240", | ||
313 | .features = PHY_GBIT_FEATURES, | ||
314 | .flags = PHY_HAS_INTERRUPT, | ||
315 | .config_init = &m88e1111_config_init, | ||
316 | .config_aneg = &marvell_config_aneg, | ||
317 | .read_status = &genphy_read_status, | ||
318 | .ack_interrupt = &marvell_ack_interrupt, | ||
319 | .config_intr = &marvell_config_intr, | ||
320 | .driver = { .owner = THIS_MODULE }, | ||
321 | }, | ||
309 | }; | 322 | }; |
310 | 323 | ||
311 | static int __init marvell_init(void) | 324 | static int __init marvell_init(void) |
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index c0461217b108..f6e484812a98 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c | |||
@@ -706,7 +706,7 @@ int phy_driver_register(struct phy_driver *new_driver) | |||
706 | return retval; | 706 | return retval; |
707 | } | 707 | } |
708 | 708 | ||
709 | pr_info("%s: Registered new driver\n", new_driver->name); | 709 | pr_debug("%s: Registered new driver\n", new_driver->name); |
710 | 710 | ||
711 | return 0; | 711 | return 0; |
712 | } | 712 | } |
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c index 120c8affe83d..c20a3bd21bb2 100644 --- a/drivers/net/sunhme.c +++ b/drivers/net/sunhme.c | |||
@@ -3143,8 +3143,8 @@ static int __devinit happy_meal_pci_probe(struct pci_dev *pdev, | |||
3143 | dev->irq = pdev->irq; | 3143 | dev->irq = pdev->irq; |
3144 | dev->dma = 0; | 3144 | dev->dma = 0; |
3145 | 3145 | ||
3146 | /* Happy Meal can do it all... */ | 3146 | /* Happy Meal can do it all... except VLAN. */ |
3147 | dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM; | 3147 | dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_VLAN_CHALLENGED; |
3148 | 3148 | ||
3149 | #if defined(CONFIG_SBUS) && defined(CONFIG_PCI) | 3149 | #if defined(CONFIG_SBUS) && defined(CONFIG_PCI) |
3150 | /* Hook up PCI register/dma accessors. */ | 3150 | /* Hook up PCI register/dma accessors. */ |