From: Kay Sievers Date: Tue, 6 Jan 2009 18:44:38 +0000 (-0800) Subject: mwave: struct device - replace bus_id with dev_name(), dev_set_name() X-Git-Tag: v2.6.29-rc1~229^2~25 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=24d254759dc4eb59b47317790c05569f732a2577;p=linux-2.6-omap-h63xx.git mwave: struct device - replace bus_id with dev_name(), dev_set_name() Signed-off-by: Kay Sievers Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/mwave/mwavedd.c b/drivers/char/mwave/mwavedd.c index 4f8d67fed29..94ad2c3bfc4 100644 --- a/drivers/char/mwave/mwavedd.c +++ b/drivers/char/mwave/mwavedd.c @@ -663,7 +663,7 @@ static int __init mwave_init(void) #if 0 /* sysfs */ memset(&mwave_device, 0, sizeof (struct device)); - snprintf(mwave_device.bus_id, BUS_ID_SIZE, "mwave"); + dev_set_name(&mwave_device, "mwave"); if (device_register(&mwave_device)) goto cleanup_error;