Skip to content

Commit 48ef2bb

Browse files
kaysieversgregkh
authored andcommitted
IA64: struct device - replace bus_id with dev_name(), dev_set_name()
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>
1 parent 24f81a7 commit 48ef2bb

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎arch/ia64/kernel/pci-dma.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int iommu_detected __read_mostly;
3939
be probably a smaller DMA mask, but this is bug-to-bug compatible
4040
to i386. */
4141
struct device fallback_dev = {
42-
.bus_id = "fallback device",
42+
.init_name = "fallback device",
4343
.coherent_dma_mask = DMA_32BIT_MASK,
4444
.dma_mask = &fallback_dev.coherent_dma_mask,
4545
};

‎arch/ia64/sn/kernel/tiocx.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@ cx_device_register(nasid_t nasid, int part_num, int mfg_num,
206206
cx_dev->dev.parent = NULL;
207207
cx_dev->dev.bus = &tiocx_bus_type;
208208
cx_dev->dev.release = tiocx_bus_release;
209-
snprintf(cx_dev->dev.bus_id, BUS_ID_SIZE, "%d",
210-
cx_dev->cx_id.nasid);
209+
dev_set_name(&cx_dev->dev, "%d", cx_dev->cx_id.nasid);
211210
device_register(&cx_dev->dev);
212211
get_device(&cx_dev->dev);
213212

0 commit comments

Comments
 (0)