Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dio: struct device - replace bus_id with dev_name(), dev_set_name()

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>

authored by

Kay Sievers and committed by
Greg Kroah-Hartman
9591463a 9d6b4c82

+2 -2
+2 -2
drivers/dio/dio.c
··· 182 182 183 183 /* Initialize the DIO bus */ 184 184 INIT_LIST_HEAD(&dio_bus.devices); 185 - strcpy(dio_bus.dev.bus_id, "dio"); 185 + dev_set_name(&dio_bus.dev, "dio"); 186 186 error = device_register(&dio_bus.dev); 187 187 if (error) { 188 188 pr_err("DIO: Error registering dio_bus\n"); ··· 237 237 dev->scode = scode; 238 238 dev->resource.start = pa; 239 239 dev->resource.end = pa + DIO_SIZE(scode, va); 240 - sprintf(dev->dev.bus_id,"%02x", scode); 240 + dev_set_name(&dev->dev, "%02x", scode); 241 241 242 242 /* read the ID byte(s) and encode if necessary. */ 243 243 prid = DIO_ID(va);