msm: bam_dmux: Add check for missed SMSM event

Handle case where the modem comes up before
BAM DMUX is initialized.

Change-Id: I15d5d1849cdec10ed29ef0b08b2d0e9e1cb3d13d
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
diff --git a/arch/arm/mach-msm/bam_dmux.c b/arch/arm/mach-msm/bam_dmux.c
index 80f5803..5e2d311 100644
--- a/arch/arm/mach-msm/bam_dmux.c
+++ b/arch/arm/mach-msm/bam_dmux.c
@@ -1268,6 +1268,9 @@
 		return -ENOMEM;
 	}
 
+	if (smsm_get_state(SMSM_MODEM_STATE) & SMSM_A2_POWER_CONTROL)
+		bam_dmux_smsm_cb(NULL, 0, smsm_get_state(SMSM_MODEM_STATE));
+
 	return 0;
 }