From 7baadac40364cdbf20c2add19f2aac678d3b603a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sun, 7 Oct 2012 14:57:15 +0200 Subject: Take care of NULL chip_ops->name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic44915cdb07e0d87962eff0744acefce2a4845a2 Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/1626 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Peter Stuge --- src/drivers/generic/debug/debug_dev.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/drivers/generic') diff --git a/src/drivers/generic/debug/debug_dev.c b/src/drivers/generic/debug/debug_dev.c index 57f807748e..b523ca7058 100644 --- a/src/drivers/generic/debug/debug_dev.c +++ b/src/drivers/generic/debug/debug_dev.c @@ -237,12 +237,7 @@ static void debug_init(device_t dev) switch(dev->path.pnp.device) { case 0: parent = dev->bus->dev; - printk(BIOS_DEBUG, "DEBUG: %s", dev_path(parent)); - if(parent->chip_ops && parent->chip_ops->name) { - printk(BIOS_DEBUG, ": %s\n", parent->chip_ops->name); - } else { - printk(BIOS_DEBUG, "\n"); - } + printk(BIOS_DEBUG, "DEBUG: %s : %s\n", dev_path(parent), dev_name(parent)); break; case 1: -- cgit v1.2.3