diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-10 16:55:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-10 16:55:14 -0500 |
commit | fb28ad35906af2f042c94e2f9c0f898ef9acfa37 (patch) | |
tree | ee3d535ab38d680b424a857406789f8c28bf5266 /drivers | |
parent | 23779897546c1effb546ff89b89803d9d955d517 (diff) |
net: struct device - replace bus_id with dev_name(), dev_set_name()
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/3c59x.c | 4 | ||||
-rw-r--r-- | drivers/net/defxx.c | 2 | ||||
-rw-r--r-- | drivers/net/enc28j60.c | 2 | ||||
-rw-r--r-- | drivers/net/fec_mpc52xx.c | 2 | ||||
-rw-r--r-- | drivers/net/gianfar.c | 2 | ||||
-rw-r--r-- | drivers/net/mlx4/mlx4_en.h | 8 | ||||
-rw-r--r-- | drivers/net/pasemi_mac.c | 3 | ||||
-rw-r--r-- | drivers/net/phy/mdio_bus.c | 4 | ||||
-rw-r--r-- | drivers/net/phy/phy.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/phy_device.c | 4 | ||||
-rw-r--r-- | drivers/net/sh_eth.c | 2 | ||||
-rw-r--r-- | drivers/net/tg3.c | 4 | ||||
-rw-r--r-- | drivers/net/tulip/de4x5.c | 4 | ||||
-rw-r--r-- | drivers/net/ucc_geth.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/defs.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/orinoco.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/orinoco_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/spectrum_cs.c | 2 |
18 files changed, 28 insertions, 27 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index b4168dfd6893..3893f505fb5f 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c | |||
@@ -1025,7 +1025,7 @@ static int __devinit vortex_probe1(struct device *gendev, | |||
1025 | } | 1025 | } |
1026 | 1026 | ||
1027 | if ((edev = DEVICE_EISA(gendev))) { | 1027 | if ((edev = DEVICE_EISA(gendev))) { |
1028 | print_name = edev->dev.bus_id; | 1028 | print_name = dev_name(&edev->dev); |
1029 | } | 1029 | } |
1030 | } | 1030 | } |
1031 | 1031 | ||
@@ -2883,7 +2883,7 @@ static void vortex_get_drvinfo(struct net_device *dev, | |||
2883 | strcpy(info->bus_info, pci_name(VORTEX_PCI(vp))); | 2883 | strcpy(info->bus_info, pci_name(VORTEX_PCI(vp))); |
2884 | } else { | 2884 | } else { |
2885 | if (VORTEX_EISA(vp)) | 2885 | if (VORTEX_EISA(vp)) |
2886 | sprintf(info->bus_info, vp->gendev->bus_id); | 2886 | sprintf(info->bus_info, dev_name(vp->gendev)); |
2887 | else | 2887 | else |
2888 | sprintf(info->bus_info, "EISA 0x%lx %d", | 2888 | sprintf(info->bus_info, "EISA 0x%lx %d", |
2889 | dev->base_addr, dev->irq); | 2889 | dev->base_addr, dev->irq); |
diff --git a/drivers/net/defxx.c b/drivers/net/defxx.c index f07887435247..6e6583b609f7 100644 --- a/drivers/net/defxx.c +++ b/drivers/net/defxx.c | |||
@@ -511,7 +511,7 @@ static int __devinit dfx_register(struct device *bdev) | |||
511 | int dfx_bus_pci = DFX_BUS_PCI(bdev); | 511 | int dfx_bus_pci = DFX_BUS_PCI(bdev); |
512 | int dfx_bus_tc = DFX_BUS_TC(bdev); | 512 | int dfx_bus_tc = DFX_BUS_TC(bdev); |
513 | int dfx_use_mmio = DFX_MMIO || dfx_bus_tc; | 513 | int dfx_use_mmio = DFX_MMIO || dfx_bus_tc; |
514 | char *print_name = bdev->bus_id; | 514 | const char *print_name = dev_name(bdev); |
515 | struct net_device *dev; | 515 | struct net_device *dev; |
516 | DFX_board_t *bp; /* board pointer */ | 516 | DFX_board_t *bp; /* board pointer */ |
517 | resource_size_t bar_start = 0; /* pointer to port */ | 517 | resource_size_t bar_start = 0; /* pointer to port */ |
diff --git a/drivers/net/enc28j60.c b/drivers/net/enc28j60.c index d186a52cdb62..32c19790d013 100644 --- a/drivers/net/enc28j60.c +++ b/drivers/net/enc28j60.c | |||
@@ -1448,7 +1448,7 @@ enc28j60_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | |||
1448 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); | 1448 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
1449 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); | 1449 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
1450 | strlcpy(info->bus_info, | 1450 | strlcpy(info->bus_info, |
1451 | dev->dev.parent->bus_id, sizeof(info->bus_info)); | 1451 | dev_name(dev->dev.parent), sizeof(info->bus_info)); |
1452 | } | 1452 | } |
1453 | 1453 | ||
1454 | static int | 1454 | static int |
diff --git a/drivers/net/fec_mpc52xx.c b/drivers/net/fec_mpc52xx.c index 94054b4981f3..cd8e98b45ec5 100644 --- a/drivers/net/fec_mpc52xx.c +++ b/drivers/net/fec_mpc52xx.c | |||
@@ -216,7 +216,7 @@ static int mpc52xx_fec_init_phy(struct net_device *dev) | |||
216 | struct phy_device *phydev; | 216 | struct phy_device *phydev; |
217 | char phy_id[BUS_ID_SIZE]; | 217 | char phy_id[BUS_ID_SIZE]; |
218 | 218 | ||
219 | snprintf(phy_id, BUS_ID_SIZE, "%x:%02x", | 219 | snprintf(phy_id, sizeof(phy_id), "%x:%02x", |
220 | (unsigned int)dev->base_addr, priv->phy_addr); | 220 | (unsigned int)dev->base_addr, priv->phy_addr); |
221 | 221 | ||
222 | priv->link = PHY_DOWN; | 222 | priv->link = PHY_DOWN; |
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index a091db393615..451f6b8b6163 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -546,7 +546,7 @@ static int init_phy(struct net_device *dev) | |||
546 | priv->oldspeed = 0; | 546 | priv->oldspeed = 0; |
547 | priv->oldduplex = -1; | 547 | priv->oldduplex = -1; |
548 | 548 | ||
549 | snprintf(phy_id, BUS_ID_SIZE, PHY_ID_FMT, priv->einfo->bus_id, priv->einfo->phy_id); | 549 | snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, priv->einfo->bus_id, priv->einfo->phy_id); |
550 | 550 | ||
551 | interface = gfar_get_interface(dev); | 551 | interface = gfar_get_interface(dev); |
552 | 552 | ||
diff --git a/drivers/net/mlx4/mlx4_en.h b/drivers/net/mlx4/mlx4_en.h index 11fb17c6e97b..cc022197e2a5 100644 --- a/drivers/net/mlx4/mlx4_en.h +++ b/drivers/net/mlx4/mlx4_en.h | |||
@@ -58,17 +58,17 @@ | |||
58 | #define mlx4_dbg(mlevel, priv, format, arg...) \ | 58 | #define mlx4_dbg(mlevel, priv, format, arg...) \ |
59 | if (NETIF_MSG_##mlevel & priv->msg_enable) \ | 59 | if (NETIF_MSG_##mlevel & priv->msg_enable) \ |
60 | printk(KERN_DEBUG "%s %s: " format , DRV_NAME ,\ | 60 | printk(KERN_DEBUG "%s %s: " format , DRV_NAME ,\ |
61 | (&priv->mdev->pdev->dev)->bus_id , ## arg) | 61 | (dev_name(&priv->mdev->pdev->dev)) , ## arg) |
62 | 62 | ||
63 | #define mlx4_err(mdev, format, arg...) \ | 63 | #define mlx4_err(mdev, format, arg...) \ |
64 | printk(KERN_ERR "%s %s: " format , DRV_NAME ,\ | 64 | printk(KERN_ERR "%s %s: " format , DRV_NAME ,\ |
65 | (&mdev->pdev->dev)->bus_id , ## arg) | 65 | (dev_name(&mdev->pdev->dev)) , ## arg) |
66 | #define mlx4_info(mdev, format, arg...) \ | 66 | #define mlx4_info(mdev, format, arg...) \ |
67 | printk(KERN_INFO "%s %s: " format , DRV_NAME ,\ | 67 | printk(KERN_INFO "%s %s: " format , DRV_NAME ,\ |
68 | (&mdev->pdev->dev)->bus_id , ## arg) | 68 | (dev_name(&mdev->pdev->dev)) , ## arg) |
69 | #define mlx4_warn(mdev, format, arg...) \ | 69 | #define mlx4_warn(mdev, format, arg...) \ |
70 | printk(KERN_WARNING "%s %s: " format , DRV_NAME ,\ | 70 | printk(KERN_WARNING "%s %s: " format , DRV_NAME ,\ |
71 | (&mdev->pdev->dev)->bus_id , ## arg) | 71 | (dev_name(&mdev->pdev->dev)) , ## arg) |
72 | 72 | ||
73 | /* | 73 | /* |
74 | * Device constants | 74 | * Device constants |
diff --git a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c index b0270052c3a9..fcbf6ccd0a85 100644 --- a/drivers/net/pasemi_mac.c +++ b/drivers/net/pasemi_mac.c | |||
@@ -1105,7 +1105,8 @@ static int pasemi_mac_phy_init(struct net_device *dev) | |||
1105 | goto err; | 1105 | goto err; |
1106 | 1106 | ||
1107 | phy_id = *prop; | 1107 | phy_id = *prop; |
1108 | snprintf(mac->phy_id, BUS_ID_SIZE, "%x:%02x", (int)r.start, phy_id); | 1108 | snprintf(mac->phy_id, sizeof(mac->phy_id), "%x:%02x", |
1109 | (int)r.start, phy_id); | ||
1109 | 1110 | ||
1110 | of_node_put(phy_dn); | 1111 | of_node_put(phy_dn); |
1111 | 1112 | ||
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index d0ed1ef284a8..6afd35f62d77 100644 --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c | |||
@@ -97,7 +97,7 @@ int mdiobus_register(struct mii_bus *bus) | |||
97 | bus->dev.parent = bus->parent; | 97 | bus->dev.parent = bus->parent; |
98 | bus->dev.class = &mdio_bus_class; | 98 | bus->dev.class = &mdio_bus_class; |
99 | bus->dev.groups = NULL; | 99 | bus->dev.groups = NULL; |
100 | memcpy(bus->dev.bus_id, bus->id, MII_BUS_ID_SIZE); | 100 | dev_set_name(&bus->dev, bus->id); |
101 | 101 | ||
102 | err = device_register(&bus->dev); | 102 | err = device_register(&bus->dev); |
103 | if (err) { | 103 | if (err) { |
@@ -191,7 +191,7 @@ struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr) | |||
191 | 191 | ||
192 | phydev->dev.parent = bus->parent; | 192 | phydev->dev.parent = bus->parent; |
193 | phydev->dev.bus = &mdio_bus_type; | 193 | phydev->dev.bus = &mdio_bus_type; |
194 | snprintf(phydev->dev.bus_id, BUS_ID_SIZE, PHY_ID_FMT, bus->id, addr); | 194 | dev_set_name(&phydev->dev, PHY_ID_FMT, bus->id, addr); |
195 | 195 | ||
196 | phydev->bus = bus; | 196 | phydev->bus = bus; |
197 | 197 | ||
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index df4e6257d4a7..e4ede6080c9d 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c | |||
@@ -45,7 +45,7 @@ | |||
45 | */ | 45 | */ |
46 | void phy_print_status(struct phy_device *phydev) | 46 | void phy_print_status(struct phy_device *phydev) |
47 | { | 47 | { |
48 | pr_info("PHY: %s - Link is %s", phydev->dev.bus_id, | 48 | pr_info("PHY: %s - Link is %s", dev_name(&phydev->dev), |
49 | phydev->link ? "Up" : "Down"); | 49 | phydev->link ? "Up" : "Down"); |
50 | if (phydev->link) | 50 | if (phydev->link) |
51 | printk(" - %d/%s", phydev->speed, | 51 | printk(" - %d/%s", phydev->speed, |
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index e11b03b2b25a..e976c1c60095 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c | |||
@@ -74,7 +74,7 @@ int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask, | |||
74 | if (!fixup) | 74 | if (!fixup) |
75 | return -ENOMEM; | 75 | return -ENOMEM; |
76 | 76 | ||
77 | strncpy(fixup->bus_id, bus_id, BUS_ID_SIZE); | 77 | strlcpy(fixup->bus_id, bus_id, sizeof(fixup->bus_id)); |
78 | fixup->phy_uid = phy_uid; | 78 | fixup->phy_uid = phy_uid; |
79 | fixup->phy_uid_mask = phy_uid_mask; | 79 | fixup->phy_uid_mask = phy_uid_mask; |
80 | fixup->run = run; | 80 | fixup->run = run; |
@@ -109,7 +109,7 @@ EXPORT_SYMBOL(phy_register_fixup_for_id); | |||
109 | */ | 109 | */ |
110 | static int phy_needs_fixup(struct phy_device *phydev, struct phy_fixup *fixup) | 110 | static int phy_needs_fixup(struct phy_device *phydev, struct phy_fixup *fixup) |
111 | { | 111 | { |
112 | if (strcmp(fixup->bus_id, phydev->dev.bus_id) != 0) | 112 | if (strcmp(fixup->bus_id, dev_name(&phydev->dev)) != 0) |
113 | if (strcmp(fixup->bus_id, PHY_ANY_ID) != 0) | 113 | if (strcmp(fixup->bus_id, PHY_ANY_ID) != 0) |
114 | return 0; | 114 | return 0; |
115 | 115 | ||
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index c51bfc57d405..077d796ccb70 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c | |||
@@ -799,7 +799,7 @@ static int sh_eth_phy_init(struct net_device *ndev) | |||
799 | char phy_id[BUS_ID_SIZE]; | 799 | char phy_id[BUS_ID_SIZE]; |
800 | struct phy_device *phydev = NULL; | 800 | struct phy_device *phydev = NULL; |
801 | 801 | ||
802 | snprintf(phy_id, BUS_ID_SIZE, PHY_ID_FMT, | 802 | snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, |
803 | mdp->mii_bus->id , mdp->phy_id); | 803 | mdp->mii_bus->id , mdp->phy_id); |
804 | 804 | ||
805 | mdp->link = PHY_DOWN; | 805 | mdp->link = PHY_DOWN; |
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 546b9eeaa171..e05849ee9000 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -1396,7 +1396,7 @@ static int tg3_phy_init(struct tg3 *tp) | |||
1396 | phydev = tp->mdio_bus->phy_map[PHY_ADDR]; | 1396 | phydev = tp->mdio_bus->phy_map[PHY_ADDR]; |
1397 | 1397 | ||
1398 | /* Attach the MAC to the PHY. */ | 1398 | /* Attach the MAC to the PHY. */ |
1399 | phydev = phy_connect(tp->dev, phydev->dev.bus_id, tg3_adjust_link, | 1399 | phydev = phy_connect(tp->dev, dev_name(&phydev->dev), tg3_adjust_link, |
1400 | phydev->dev_flags, phydev->interface); | 1400 | phydev->dev_flags, phydev->interface); |
1401 | if (IS_ERR(phydev)) { | 1401 | if (IS_ERR(phydev)) { |
1402 | printk(KERN_ERR "%s: Could not attach to PHY\n", tp->dev->name); | 1402 | printk(KERN_ERR "%s: Could not attach to PHY\n", tp->dev->name); |
@@ -13645,7 +13645,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, | |||
13645 | "%s: attached PHY driver [%s] (mii_bus:phy_addr=%s)\n", | 13645 | "%s: attached PHY driver [%s] (mii_bus:phy_addr=%s)\n", |
13646 | tp->dev->name, | 13646 | tp->dev->name, |
13647 | tp->mdio_bus->phy_map[PHY_ADDR]->drv->name, | 13647 | tp->mdio_bus->phy_map[PHY_ADDR]->drv->name, |
13648 | tp->mdio_bus->phy_map[PHY_ADDR]->dev.bus_id); | 13648 | dev_name(&tp->mdio_bus->phy_map[PHY_ADDR]->dev)); |
13649 | else | 13649 | else |
13650 | printk(KERN_INFO | 13650 | printk(KERN_INFO |
13651 | "%s: attached PHY is %s (%s Ethernet) (WireSpeed[%d])\n", | 13651 | "%s: attached PHY is %s (%s Ethernet) (WireSpeed[%d])\n", |
diff --git a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c index f8a45253eaf8..67bfd6f43366 100644 --- a/drivers/net/tulip/de4x5.c +++ b/drivers/net/tulip/de4x5.c | |||
@@ -1118,7 +1118,7 @@ de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev) | |||
1118 | } | 1118 | } |
1119 | 1119 | ||
1120 | dev->base_addr = iobase; | 1120 | dev->base_addr = iobase; |
1121 | printk ("%s: %s at 0x%04lx", gendev->bus_id, name, iobase); | 1121 | printk ("%s: %s at 0x%04lx", dev_name(gendev), name, iobase); |
1122 | 1122 | ||
1123 | status = get_hw_addr(dev); | 1123 | status = get_hw_addr(dev); |
1124 | printk(", h/w address %pM\n", dev->dev_addr); | 1124 | printk(", h/w address %pM\n", dev->dev_addr); |
@@ -1153,7 +1153,7 @@ de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev) | |||
1153 | } | 1153 | } |
1154 | } | 1154 | } |
1155 | lp->fdx = lp->params.fdx; | 1155 | lp->fdx = lp->params.fdx; |
1156 | sprintf(lp->adapter_name,"%s (%s)", name, gendev->bus_id); | 1156 | sprintf(lp->adapter_name,"%s (%s)", name, dev_name(gendev)); |
1157 | 1157 | ||
1158 | lp->dma_size = (NUM_RX_DESC + NUM_TX_DESC) * sizeof(struct de4x5_desc); | 1158 | lp->dma_size = (NUM_RX_DESC + NUM_TX_DESC) * sizeof(struct de4x5_desc); |
1159 | #if defined(__alpha__) || defined(__powerpc__) || defined(CONFIG_SPARC) || defined(DE4X5_DO_MEMCPY) | 1159 | #if defined(__alpha__) || defined(__powerpc__) || defined(CONFIG_SPARC) || defined(DE4X5_DO_MEMCPY) |
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index 4931af736630..0a5b817fd7ac 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c | |||
@@ -1615,8 +1615,8 @@ static int init_phy(struct net_device *dev) | |||
1615 | priv->oldspeed = 0; | 1615 | priv->oldspeed = 0; |
1616 | priv->oldduplex = -1; | 1616 | priv->oldduplex = -1; |
1617 | 1617 | ||
1618 | snprintf(phy_id, BUS_ID_SIZE, PHY_ID_FMT, priv->ug_info->mdio_bus, | 1618 | snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, priv->ug_info->mdio_bus, |
1619 | priv->ug_info->phy_address); | 1619 | priv->ug_info->phy_address); |
1620 | 1620 | ||
1621 | phydev = phy_connect(dev, phy_id, &adjust_link, 0, priv->phy_interface); | 1621 | phydev = phy_connect(dev, phy_id, &adjust_link, 0, priv->phy_interface); |
1622 | 1622 | ||
diff --git a/drivers/net/wireless/libertas/defs.h b/drivers/net/wireless/libertas/defs.h index 076a636e8f62..2d4666f26808 100644 --- a/drivers/net/wireless/libertas/defs.h +++ b/drivers/net/wireless/libertas/defs.h | |||
@@ -79,7 +79,7 @@ do { if ((lbs_debug & (grp)) == (grp)) \ | |||
79 | #define lbs_deb_tx(fmt, args...) LBS_DEB_LL(LBS_DEB_TX, " tx", fmt, ##args) | 79 | #define lbs_deb_tx(fmt, args...) LBS_DEB_LL(LBS_DEB_TX, " tx", fmt, ##args) |
80 | #define lbs_deb_fw(fmt, args...) LBS_DEB_LL(LBS_DEB_FW, " fw", fmt, ##args) | 80 | #define lbs_deb_fw(fmt, args...) LBS_DEB_LL(LBS_DEB_FW, " fw", fmt, ##args) |
81 | #define lbs_deb_usb(fmt, args...) LBS_DEB_LL(LBS_DEB_USB, " usb", fmt, ##args) | 81 | #define lbs_deb_usb(fmt, args...) LBS_DEB_LL(LBS_DEB_USB, " usb", fmt, ##args) |
82 | #define lbs_deb_usbd(dev, fmt, args...) LBS_DEB_LL(LBS_DEB_USB, " usbd", "%s:" fmt, (dev)->bus_id, ##args) | 82 | #define lbs_deb_usbd(dev, fmt, args...) LBS_DEB_LL(LBS_DEB_USB, " usbd", "%s:" fmt, dev_name(dev), ##args) |
83 | #define lbs_deb_cs(fmt, args...) LBS_DEB_LL(LBS_DEB_CS, " cs", fmt, ##args) | 83 | #define lbs_deb_cs(fmt, args...) LBS_DEB_LL(LBS_DEB_CS, " cs", fmt, ##args) |
84 | #define lbs_deb_thread(fmt, args...) LBS_DEB_LL(LBS_DEB_THREAD, " thread", fmt, ##args) | 84 | #define lbs_deb_thread(fmt, args...) LBS_DEB_LL(LBS_DEB_THREAD, " thread", fmt, ##args) |
85 | #define lbs_deb_sdio(fmt, args...) LBS_DEB_LL(LBS_DEB_SDIO, " sdio", fmt, ##args) | 85 | #define lbs_deb_sdio(fmt, args...) LBS_DEB_LL(LBS_DEB_SDIO, " sdio", fmt, ##args) |
diff --git a/drivers/net/wireless/orinoco/orinoco.c b/drivers/net/wireless/orinoco/orinoco.c index f4ea08f96970..072be44b37de 100644 --- a/drivers/net/wireless/orinoco/orinoco.c +++ b/drivers/net/wireless/orinoco/orinoco.c | |||
@@ -5987,7 +5987,7 @@ static void orinoco_get_drvinfo(struct net_device *dev, | |||
5987 | strncpy(info->version, DRIVER_VERSION, sizeof(info->version) - 1); | 5987 | strncpy(info->version, DRIVER_VERSION, sizeof(info->version) - 1); |
5988 | strncpy(info->fw_version, priv->fw_name, sizeof(info->fw_version) - 1); | 5988 | strncpy(info->fw_version, priv->fw_name, sizeof(info->fw_version) - 1); |
5989 | if (dev->dev.parent) | 5989 | if (dev->dev.parent) |
5990 | strncpy(info->bus_info, dev->dev.parent->bus_id, | 5990 | strncpy(info->bus_info, dev_name(dev->dev.parent), |
5991 | sizeof(info->bus_info) - 1); | 5991 | sizeof(info->bus_info) - 1); |
5992 | else | 5992 | else |
5993 | snprintf(info->bus_info, sizeof(info->bus_info) - 1, | 5993 | snprintf(info->bus_info, sizeof(info->bus_info) - 1, |
diff --git a/drivers/net/wireless/orinoco/orinoco_cs.c b/drivers/net/wireless/orinoco/orinoco_cs.c index 6fcf2bda7cdf..bf6a51da3b29 100644 --- a/drivers/net/wireless/orinoco/orinoco_cs.c +++ b/drivers/net/wireless/orinoco/orinoco_cs.c | |||
@@ -308,7 +308,7 @@ orinoco_cs_config(struct pcmcia_device *link) | |||
308 | 308 | ||
309 | /* Finally, report what we've done */ | 309 | /* Finally, report what we've done */ |
310 | printk(KERN_DEBUG "%s: " DRIVER_NAME " at %s, irq %d, io " | 310 | printk(KERN_DEBUG "%s: " DRIVER_NAME " at %s, irq %d, io " |
311 | "0x%04x-0x%04x\n", dev->name, dev->dev.parent->bus_id, | 311 | "0x%04x-0x%04x\n", dev->name, dev_name(dev->dev.parent), |
312 | link->irq.AssignedIRQ, link->io.BasePort1, | 312 | link->irq.AssignedIRQ, link->io.BasePort1, |
313 | link->io.BasePort1 + link->io.NumPorts1 - 1); | 313 | link->io.BasePort1 + link->io.NumPorts1 - 1); |
314 | return 0; | 314 | return 0; |
diff --git a/drivers/net/wireless/orinoco/spectrum_cs.c b/drivers/net/wireless/orinoco/spectrum_cs.c index 852789ad34b3..0bae3dcf9d50 100644 --- a/drivers/net/wireless/orinoco/spectrum_cs.c +++ b/drivers/net/wireless/orinoco/spectrum_cs.c | |||
@@ -383,7 +383,7 @@ spectrum_cs_config(struct pcmcia_device *link) | |||
383 | 383 | ||
384 | /* Finally, report what we've done */ | 384 | /* Finally, report what we've done */ |
385 | printk(KERN_DEBUG "%s: " DRIVER_NAME " at %s, irq %d, io " | 385 | printk(KERN_DEBUG "%s: " DRIVER_NAME " at %s, irq %d, io " |
386 | "0x%04x-0x%04x\n", dev->name, dev->dev.parent->bus_id, | 386 | "0x%04x-0x%04x\n", dev->name, dev_name(dev->dev.parent), |
387 | link->irq.AssignedIRQ, link->io.BasePort1, | 387 | link->irq.AssignedIRQ, link->io.BasePort1, |
388 | link->io.BasePort1 + link->io.NumPorts1 - 1); | 388 | link->io.BasePort1 + link->io.NumPorts1 - 1); |
389 | 389 | ||