[Skiboot] [PATCH 3/4] assert dt allocation succeeded for rhesus rtc
Stewart Smith
stewart at linux.vnet.ibm.com
Wed Sep 9 15:54:12 AEST 2015
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
platforms/rhesus/rhesus.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/platforms/rhesus/rhesus.c b/platforms/rhesus/rhesus.c
index 2131ec0..3e2c41b 100644
--- a/platforms/rhesus/rhesus.c
+++ b/platforms/rhesus/rhesus.c
@@ -218,6 +218,7 @@ static void rhesus_dt_fixup_rtc(struct dt_node *lpc)
* arch/powerpc/sysdev/rtc_cmos_setup.c
*/
rtc = dt_new_addr(lpc, "rtc", EC_RTC_PORT_BASE);
+ assert(rtc);
dt_add_property_string(rtc, "compatible", "pnpPNP,b00");
dt_add_property_cells(rtc, "reg",
1, /* IO space */
--
2.1.4
More information about the Skiboot
mailing list