diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-22 16:13:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-22 16:13:47 -0400 |
commit | 53baaaa9682c230410a057263d1ce2922f43ddc4 (patch) | |
tree | f5cced5622130f780d76953b284a631c3d226488 /drivers/net | |
parent | f10140fbe5f97ecfeda986a12d0f1bad75642779 (diff) | |
parent | 3f9787046ea37a26170dc4439efa21f8d23a9978 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (79 commits)
arm: bus_id -> dev_name() and dev_set_name() conversions
sparc64: fix up bus_id changes in sparc core code
3c59x: handle pci_name() being const
MTD: handle pci_name() being const
HP iLO driver
sysdev: Convert the x86 mce tolerant sysdev attribute to generic attribute
sysdev: Add utility functions for simple int/ulong variable sysdev attributes
sysdev: Pass the attribute to the low level sysdev show/store function
driver core: Suppress sysfs warnings for device_rename().
kobject: Transmit return value of call_usermodehelper() to caller
sysfs-rules.txt: reword API stability statement
debugfs: Implement debugfs_remove_recursive()
HOWTO: change email addresses of James in HOWTO
always enable FW_LOADER unless EMBEDDED=y
uio-howto.tmpl: use unique output names
uio-howto.tmpl: use standard copyright/legal markings
sysfs: don't call notify_change
sysdev: fix debugging statements in registration code.
kobject: should use kobject_put() in kset-example
kobject: reorder kobject to save space on 64 bit builds
...
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/3c59x.c | 2 | ||||
-rw-r--r-- | drivers/net/arm/at91_ether.c | 2 | ||||
-rw-r--r-- | drivers/net/arm/ep93xx_eth.c | 2 | ||||
-rw-r--r-- | drivers/net/arm/etherh.c | 6 | ||||
-rw-r--r-- | drivers/net/ppp_generic.c | 3 | ||||
-rw-r--r-- | drivers/net/wan/cosa.c | 6 |
6 files changed, 11 insertions, 10 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index aabad8ce7458..8db4e6b89482 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c | |||
@@ -1010,7 +1010,7 @@ static int __devinit vortex_probe1(struct device *gendev, | |||
1010 | static int printed_version; | 1010 | static int printed_version; |
1011 | int retval, print_info; | 1011 | int retval, print_info; |
1012 | struct vortex_chip_info * const vci = &vortex_info_tbl[chip_idx]; | 1012 | struct vortex_chip_info * const vci = &vortex_info_tbl[chip_idx]; |
1013 | char *print_name = "3c59x"; | 1013 | const char *print_name = "3c59x"; |
1014 | struct pci_dev *pdev = NULL; | 1014 | struct pci_dev *pdev = NULL; |
1015 | struct eisa_device *edev = NULL; | 1015 | struct eisa_device *edev = NULL; |
1016 | DECLARE_MAC_BUF(mac); | 1016 | DECLARE_MAC_BUF(mac); |
diff --git a/drivers/net/arm/at91_ether.c b/drivers/net/arm/at91_ether.c index 1e39e78f1778..71f7cec30911 100644 --- a/drivers/net/arm/at91_ether.c +++ b/drivers/net/arm/at91_ether.c | |||
@@ -677,7 +677,7 @@ static void at91ether_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo | |||
677 | { | 677 | { |
678 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); | 678 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
679 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); | 679 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
680 | strlcpy(info->bus_info, dev->dev.parent->bus_id, sizeof(info->bus_info)); | 680 | strlcpy(info->bus_info, dev_name(dev->dev.parent), sizeof(info->bus_info)); |
681 | } | 681 | } |
682 | 682 | ||
683 | static const struct ethtool_ops at91ether_ethtool_ops = { | 683 | static const struct ethtool_ops at91ether_ethtool_ops = { |
diff --git a/drivers/net/arm/ep93xx_eth.c b/drivers/net/arm/ep93xx_eth.c index ecd8fc6146e9..7a14980f3472 100644 --- a/drivers/net/arm/ep93xx_eth.c +++ b/drivers/net/arm/ep93xx_eth.c | |||
@@ -848,7 +848,7 @@ static int ep93xx_eth_probe(struct platform_device *pdev) | |||
848 | 848 | ||
849 | ep->res = request_mem_region(pdev->resource[0].start, | 849 | ep->res = request_mem_region(pdev->resource[0].start, |
850 | pdev->resource[0].end - pdev->resource[0].start + 1, | 850 | pdev->resource[0].end - pdev->resource[0].start + 1, |
851 | pdev->dev.bus_id); | 851 | dev_name(&pdev->dev)); |
852 | if (ep->res == NULL) { | 852 | if (ep->res == NULL) { |
853 | dev_err(&pdev->dev, "Could not reserve memory region\n"); | 853 | dev_err(&pdev->dev, "Could not reserve memory region\n"); |
854 | err = -ENOMEM; | 854 | err = -ENOMEM; |
diff --git a/drivers/net/arm/etherh.c b/drivers/net/arm/etherh.c index e9d15eccad08..5c5f1e470d3c 100644 --- a/drivers/net/arm/etherh.c +++ b/drivers/net/arm/etherh.c | |||
@@ -535,7 +535,7 @@ static int __init etherh_addr(char *addr, struct expansion_card *ec) | |||
535 | 535 | ||
536 | if (!ecard_readchunk(&cd, ec, 0xf5, 0)) { | 536 | if (!ecard_readchunk(&cd, ec, 0xf5, 0)) { |
537 | printk(KERN_ERR "%s: unable to read podule description string\n", | 537 | printk(KERN_ERR "%s: unable to read podule description string\n", |
538 | ec->dev.bus_id); | 538 | dev_name(&ec->dev)); |
539 | goto no_addr; | 539 | goto no_addr; |
540 | } | 540 | } |
541 | 541 | ||
@@ -554,7 +554,7 @@ static int __init etherh_addr(char *addr, struct expansion_card *ec) | |||
554 | } | 554 | } |
555 | 555 | ||
556 | printk(KERN_ERR "%s: unable to parse MAC address: %s\n", | 556 | printk(KERN_ERR "%s: unable to parse MAC address: %s\n", |
557 | ec->dev.bus_id, cd.d.string); | 557 | dev_name(&ec->dev), cd.d.string); |
558 | 558 | ||
559 | no_addr: | 559 | no_addr: |
560 | return -ENODEV; | 560 | return -ENODEV; |
@@ -585,7 +585,7 @@ static void etherh_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *i | |||
585 | { | 585 | { |
586 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); | 586 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
587 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); | 587 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
588 | strlcpy(info->bus_info, dev->dev.parent->bus_id, | 588 | strlcpy(info->bus_info, dev_name(dev->dev.parent), |
589 | sizeof(info->bus_info)); | 589 | sizeof(info->bus_info)); |
590 | } | 590 | } |
591 | 591 | ||
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 6b1d7a8edf15..739b3ab7bccc 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c | |||
@@ -866,7 +866,8 @@ static int __init ppp_init(void) | |||
866 | err = PTR_ERR(ppp_class); | 866 | err = PTR_ERR(ppp_class); |
867 | goto out_chrdev; | 867 | goto out_chrdev; |
868 | } | 868 | } |
869 | device_create(ppp_class, NULL, MKDEV(PPP_MAJOR, 0), "ppp"); | 869 | device_create_drvdata(ppp_class, NULL, MKDEV(PPP_MAJOR, 0), |
870 | NULL, "ppp"); | ||
870 | } | 871 | } |
871 | 872 | ||
872 | out: | 873 | out: |
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index 5827324e9d9f..f7d3349dc3ec 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c | |||
@@ -397,9 +397,9 @@ static int __init cosa_init(void) | |||
397 | err = PTR_ERR(cosa_class); | 397 | err = PTR_ERR(cosa_class); |
398 | goto out_chrdev; | 398 | goto out_chrdev; |
399 | } | 399 | } |
400 | for (i=0; i<nr_cards; i++) { | 400 | for (i = 0; i < nr_cards; i++) |
401 | device_create(cosa_class, NULL, MKDEV(cosa_major, i), "cosa%d", i); | 401 | device_create_drvdata(cosa_class, NULL, MKDEV(cosa_major, i), |
402 | } | 402 | NULL, "cosa%d", i); |
403 | err = 0; | 403 | err = 0; |
404 | goto out; | 404 | goto out; |
405 | 405 | ||