wwan_perst: Warn if somebody failed to initialize us
diff --git a/firmware/libboard/qmod/source/wwan_perst.c b/firmware/libboard/qmod/source/wwan_perst.c
index d0c6c3d..f16006f 100644
--- a/firmware/libboard/qmod/source/wwan_perst.c
+++ b/firmware/libboard/qmod/source/wwan_perst.c
@@ -27,6 +27,8 @@
 };
 #endif
 
+static int initialized = 0;
+
 static void perst_tmr_cb(void *data)
 {
 	struct wwan_perst *perst = data;
@@ -36,6 +38,11 @@
 
 static struct wwan_perst *get_perst_for_modem(int modem_nr)
 {
+	if (!initialized) {
+		TRACE_ERROR("Somebody forgot to call wwan_perst_init()\r\n");
+		wwan_perst_init();
+	}
+
 	switch (modem_nr) {
 #ifdef PIN_PERST1
 	case 1: