aboutsummaryrefslogtreecommitdiff
path: root/hw/dts.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-01-13 11:32:00 -0600
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-01-16 12:11:01 +1100
commit97fa9dd999e118144e7d4a5f876c0c7adde5d378 (patch)
treef2876ce810689e1bfda7dc6d26e40a53a4847d03 /hw/dts.c
parente9d2bfc6bd75f57b8143d782037a8043dc64a213 (diff)
downloadskiboot-97fa9dd999e118144e7d4a5f876c0c7adde5d378.zip
skiboot-97fa9dd999e118144e7d4a5f876c0c7adde5d378.tar.gz
skiboot-97fa9dd999e118144e7d4a5f876c0c7adde5d378.tar.bz2
dts: Don't assert when we don't know the processor type
Return an error instead Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/dts.c')
-rw-r--r--hw/dts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dts.c b/hw/dts.c
index 902a3b4..dbbe35b 100644
--- a/hw/dts.c
+++ b/hw/dts.c
@@ -204,7 +204,7 @@ static int dts_read_core_temp(uint32_t pir, struct dts *dts)
rc = dts_read_core_temp_p8(pir, dts);
break;
default:
- assert(false);
+ rc = OPAL_UNSUPPORTED;
}
return rc;
}