platform: msm_shared: Change to parse recovery image for dtbo selection.

The recovery partition must be self-sufficient and cannot depend
on other partitions. While booting into recovery, the bootloader
must load the DTBO image that is compatible with the recovery image.
Change check the header version for appended DTBO, and extracts
appended dtbo in case booting into recovery mode.

Change-Id: Idfb0e0113d72c0fb40b346a6281b259c00a40d05
diff --git a/platform/msm_shared/boot_verifier.c b/platform/msm_shared/boot_verifier.c
index ced0fac..e547d81 100644
--- a/platform/msm_shared/boot_verifier.c
+++ b/platform/msm_shared/boot_verifier.c
@@ -782,11 +782,11 @@
 #if OSVERSION_IN_BOOTIMAGE
 void set_os_version(unsigned char* img_addr)
 {
-	struct boot_img_hdr *img_hdr = NULL;
+	boot_img_hdr *img_hdr = NULL;
 
 	/* Extract the os version and patch level */
 	if (img_addr) {
-		img_hdr = (struct boot_img_hdr *)img_addr;
+		img_hdr = (boot_img_hdr *)img_addr;
 		boot_state_info.system_version = (img_hdr->os_version & 0xFFFFF800) >> 11;
 		boot_state_info.system_security_level = (img_hdr->os_version & 0x7FF);
 	} else {