]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
IA64: struct device - replace bus_id with dev_name(), dev_set_name()
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 6 Jan 2009 18:44:40 +0000 (10:44 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 18:44:40 +0000 (10:44 -0800)
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/ia64/kernel/pci-dma.c
arch/ia64/sn/kernel/tiocx.c

index 2a92f637431d77f0ddeba81c89643c332a3ddac4..d0ada067a4af52bd83fdac763b862d3b62e2ed13 100644 (file)
@@ -39,7 +39,7 @@ int iommu_detected __read_mostly;
    be probably a smaller DMA mask, but this is bug-to-bug compatible
    to i386. */
 struct device fallback_dev = {
-       .bus_id = "fallback device",
+       .init_name = "fallback device",
        .coherent_dma_mask = DMA_32BIT_MASK,
        .dma_mask = &fallback_dev.coherent_dma_mask,
 };
index a88eba3314d7fb02b812c7b8cf5055788da90fa4..3f864238566d5aa1ae92c854dac9f783985978c4 100644 (file)
@@ -206,8 +206,7 @@ cx_device_register(nasid_t nasid, int part_num, int mfg_num,
        cx_dev->dev.parent = NULL;
        cx_dev->dev.bus = &tiocx_bus_type;
        cx_dev->dev.release = tiocx_bus_release;
-       snprintf(cx_dev->dev.bus_id, BUS_ID_SIZE, "%d",
-                cx_dev->cx_id.nasid);
+       dev_set_name(&cx_dev->dev, "%d", cx_dev->cx_id.nasid);
        device_register(&cx_dev->dev);
        get_device(&cx_dev->dev);