target: apq8084: Restrict mmc_sleep api call to only EMMC.

Currently UFS doesnt support sleep functionality, hence restrict
mmc_sleep api call to only EMMC.

Change-Id: I6662497c3f72ebff363c1c42fdf0b77a5303fc58
diff --git a/include/target.h b/include/target.h
index bb3a6f7..df1bf3f 100644
--- a/include/target.h
+++ b/include/target.h
@@ -49,6 +49,7 @@
 void target_load_ssd_keystore(void);
 bool target_is_ssd_enabled(void);
 void *target_mmc_device();
+uint32_t target_boot_device_emmc();
 
 bool target_display_panel_node(char *pbuf, uint16_t buf_size);
 uint32_t target_get_boot_device();
diff --git a/target/apq8084/init.c b/target/apq8084/init.c
index 7e3e458..2c2efc9 100644
--- a/target/apq8084/init.c
+++ b/target/apq8084/init.c
@@ -147,7 +147,8 @@
 
 void target_uninit(void)
 {
-	mmc_put_card_to_sleep(dev);
+	if(target_boot_device_emmc())
+		mmc_put_card_to_sleep(dev);
 }
 
 /* Do target specific usb initialization */