From patchwork Sun Jan 25 22:40:56 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kay Sievers X-Patchwork-Id: 3919 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n0PMfot0001215 for ; Sun, 25 Jan 2009 22:41:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750781AbZAYWlt (ORCPT ); Sun, 25 Jan 2009 17:41:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750796AbZAYWlt (ORCPT ); Sun, 25 Jan 2009 17:41:49 -0500 Received: from fg-out-1718.google.com ([72.14.220.159]:37267 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750781AbZAYWlt (ORCPT ); Sun, 25 Jan 2009 17:41:49 -0500 Received: by fg-out-1718.google.com with SMTP id 19so3298169fgg.17 for ; Sun, 25 Jan 2009 14:41:47 -0800 (PST) Received: by 10.103.6.18 with SMTP id j18mr5578517mui.33.1232923306786; Sun, 25 Jan 2009 14:41:46 -0800 (PST) Received: from ?192.168.178.69? (g224067134.adsl.alicedsl.de [92.224.67.134]) by mx.google.com with ESMTPS id j2sm22263639mue.35.2009.01.25.14.41.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 25 Jan 2009 14:41:46 -0800 (PST) Subject: acpi: struct device - replace bus_id with dev_name(), dev_set_name() From: Kay Sievers To: Len Brown Cc: linux-acpi , Greg Kroah-Hartman Date: Sun, 25 Jan 2009 23:40:56 +0100 Message-Id: <1232923256.2924.3.camel@nga> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Kay Sievers Subject: acpi: struct device - replace bus_id with dev_name(), dev_set_name() Cc: lenb@kernel.org Cc: linux-acpi@vger.kernel.org Acked-by: Greg Kroah-Hartman Signed-off-by: Kay Sievers --- drivers/acpi/glue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/acpi/glue.c +++ b/drivers/acpi/glue.c @@ -255,12 +255,12 @@ static int acpi_platform_notify(struct d } type = acpi_get_bus_type(dev->bus); if (!type) { - DBG("No ACPI bus support for %s\n", dev->bus_id); + DBG("No ACPI bus support for %s\n", dev_name(dev)); ret = -EINVAL; goto end; } if ((ret = type->find_device(dev, &handle)) != 0) - DBG("Can't get handler for %s\n", dev->bus_id); + DBG("Can't get handler for %s\n", dev_name(dev)); end: if (!ret) acpi_bind_one(dev, handle); @@ -271,10 +271,10 @@ static int acpi_platform_notify(struct d acpi_get_name(dev->archdata.acpi_handle, ACPI_FULL_PATHNAME, &buffer); - DBG("Device %s -> %s\n", dev->bus_id, (char *)buffer.pointer); + DBG("Device %s -> %s\n", dev_name(dev), (char *)buffer.pointer); kfree(buffer.pointer); } else - DBG("Device %s -> No ACPI support\n", dev->bus_id); + DBG("Device %s -> No ACPI support\n", dev_name(dev)); #endif return ret;