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>
This commit is contained in:
committed by
Peter Stuge
parent
0524e4b53e
commit
7baadac403
@@ -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:
|
||||
|
Reference in New Issue
Block a user