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: (60 commits) uio: make uio_info's name and version const UIO: Documentation for UIO ioport info handling UIO: Pass information about ioports to userspace (V2) UIO: uio_pdrv_genirq: allow custom irq_flags UIO: use pci_ioremap_bar() in drivers/uio arm: struct device - replace bus_id with dev_name(), dev_set_name() libata: struct device - replace bus_id with dev_name(), dev_set_name() avr: struct device - replace bus_id with dev_name(), dev_set_name() block: struct device - replace bus_id with dev_name(), dev_set_name() chris: struct device - replace bus_id with dev_name(), dev_set_name() dmi: struct device - replace bus_id with dev_name(), dev_set_name() gadget: struct device - replace bus_id with dev_name(), dev_set_name() gpio: struct device - replace bus_id with dev_name(), dev_set_name() gpu: struct device - replace bus_id with dev_name(), dev_set_name() hwmon: struct device - replace bus_id with dev_name(), dev_set_name() i2o: struct device - replace bus_id with dev_name(), dev_set_name() IA64: struct device - replace bus_id with dev_name(), dev_set_name() i7300_idle: struct device - replace bus_id with dev_name(), dev_set_name() infiniband: struct device - replace bus_id with dev_name(), dev_set_name() ISDN: struct device - replace bus_id with dev_name(), dev_set_name() ...
This commit is contained in:
@@ -29,7 +29,7 @@ static struct device_driver gru_driver = {
|
||||
};
|
||||
|
||||
static struct device gru_device = {
|
||||
.bus_id = {0},
|
||||
.init_name = "",
|
||||
.driver = &gru_driver,
|
||||
};
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ struct device_driver xp_dbg_name = {
|
||||
};
|
||||
|
||||
struct device xp_dbg_subname = {
|
||||
.bus_id = {0}, /* set to "" */
|
||||
.init_name = "", /* set to "" */
|
||||
.driver = &xp_dbg_name
|
||||
};
|
||||
|
||||
|
||||
@@ -59,12 +59,12 @@ struct device_driver xpc_dbg_name = {
|
||||
};
|
||||
|
||||
struct device xpc_part_dbg_subname = {
|
||||
.bus_id = {0}, /* set to "part" at xpc_init() time */
|
||||
.init_name = "", /* set to "part" at xpc_init() time */
|
||||
.driver = &xpc_dbg_name
|
||||
};
|
||||
|
||||
struct device xpc_chan_dbg_subname = {
|
||||
.bus_id = {0}, /* set to "chan" at xpc_init() time */
|
||||
.init_name = "", /* set to "chan" at xpc_init() time */
|
||||
.driver = &xpc_dbg_name
|
||||
};
|
||||
|
||||
@@ -1258,8 +1258,8 @@ xpc_init(void)
|
||||
int ret;
|
||||
struct task_struct *kthread;
|
||||
|
||||
snprintf(xpc_part->bus_id, BUS_ID_SIZE, "part");
|
||||
snprintf(xpc_chan->bus_id, BUS_ID_SIZE, "chan");
|
||||
dev_set_name(xpc_part, "part");
|
||||
dev_set_name(xpc_chan, "chan");
|
||||
|
||||
if (is_shub()) {
|
||||
/*
|
||||
|
||||
@@ -138,7 +138,7 @@ struct device_driver xpnet_dbg_name = {
|
||||
};
|
||||
|
||||
struct device xpnet_dbg_subname = {
|
||||
.bus_id = {0}, /* set to "" */
|
||||
.init_name = "", /* set to "" */
|
||||
.driver = &xpnet_dbg_name
|
||||
};
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ static void tifm_7xx1_switch_media(struct work_struct *work)
|
||||
if (sock) {
|
||||
printk(KERN_INFO
|
||||
"%s : demand removing card from socket %u:%u\n",
|
||||
fm->dev.bus_id, fm->id, cnt);
|
||||
dev_name(&fm->dev), fm->id, cnt);
|
||||
fm->sockets[cnt] = NULL;
|
||||
sock_addr = sock->addr;
|
||||
spin_unlock_irqrestore(&fm->lock, flags);
|
||||
|
||||
@@ -203,7 +203,7 @@ int tifm_add_adapter(struct tifm_adapter *fm)
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
snprintf(fm->dev.bus_id, BUS_ID_SIZE, "tifm%u", fm->id);
|
||||
dev_set_name(&fm->dev, "tifm%u", fm->id);
|
||||
rc = device_add(&fm->dev);
|
||||
if (rc) {
|
||||
spin_lock(&tifm_adapter_lock);
|
||||
@@ -266,9 +266,8 @@ struct tifm_dev *tifm_alloc_device(struct tifm_adapter *fm, unsigned int id,
|
||||
sock->dev.dma_mask = fm->dev.parent->dma_mask;
|
||||
sock->dev.release = tifm_free_device;
|
||||
|
||||
snprintf(sock->dev.bus_id, BUS_ID_SIZE,
|
||||
"tifm_%s%u:%u", tifm_media_type_name(type, 2),
|
||||
fm->id, id);
|
||||
dev_set_name(&sock->dev, "tifm_%s%u:%u",
|
||||
tifm_media_type_name(type, 2), fm->id, id);
|
||||
printk(KERN_INFO DRIVER_NAME
|
||||
": %s card detected in socket %u:%u\n",
|
||||
tifm_media_type_name(type, 0), fm->id, id);
|
||||
|
||||
Reference in New Issue
Block a user