diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2012-10-07 14:57:15 +0200 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2012-10-27 02:52:15 +0200 |
commit | 7baadac40364cdbf20c2add19f2aac678d3b603a (patch) | |
tree | effe07e8982a7048e6882db6e945c721113f1610 /src/drivers | |
parent | 0524e4b53e91596340f6c9ecfb893b19d6118a64 (diff) |
Take care of NULL chip_ops->name
Change-Id: Ic44915cdb07e0d87962eff0744acefce2a4845a2
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/1626
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/generic/debug/debug_dev.c | 7 |
1 files changed, 1 insertions, 6 deletions
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: |