Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752004AbZAZRgl (ORCPT ); Mon, 26 Jan 2009 12:36:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752860AbZAZRgb (ORCPT ); Mon, 26 Jan 2009 12:36:31 -0500 Received: from kroah.org ([198.145.64.141]:33411 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751856AbZAZRgb (ORCPT ); Mon, 26 Jan 2009 12:36:31 -0500 Date: Mon, 26 Jan 2009 09:30:19 -0800 From: Greg KH To: Geoff Levand Cc: Kay Sievers , linux-kernel@vger.kernel.org Subject: PS3: replace bus_id usage Message-ID: <20090126173019.GA12010@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1540 Lines: 45 From: Greg Kroah-Hartman These simple debug statments should be using dev_dbg() instead of accessing bus_id directly (or they should use device_name). As bus_id is going away, this patch is necessary. Cc: Geoff Levand Cc: Kay Sievers Signed-off-by: Greg Kroah-Hartman --- This fixes a built-breakage in linux-next. I'll be glad to keep this in my tree if you don't want to take it in yours, just let me know. arch/powerpc/platforms/ps3/system-bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/powerpc/platforms/ps3/system-bus.c +++ b/arch/powerpc/platforms/ps3/system-bus.c @@ -376,7 +376,7 @@ static int ps3_system_bus_probe(struct d struct ps3_system_bus_driver *drv; BUG_ON(!dev); - pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, _dev->bus_id); + dev_dbg(_dev, "%s:%d\n", __func__, __LINE__); drv = ps3_system_bus_dev_to_system_bus_drv(dev); BUG_ON(!drv); @@ -398,7 +398,7 @@ static int ps3_system_bus_remove(struct struct ps3_system_bus_driver *drv; BUG_ON(!dev); - pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, _dev->bus_id); + dev_dbg(_dev, "%s:%d\n", __func__, __LINE__); drv = ps3_system_bus_dev_to_system_bus_drv(dev); BUG_ON(!drv); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/