summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorfaqiang.zhu <faqiang.zhu@nxp.com>2018-12-05 21:56:20 +0800
committerfaqiang.zhu <faqiang.zhu@nxp.com>2018-12-06 12:19:41 +0800
commit1d19996259592176d21e2c393180027d571fb658 (patch)
tree6beae105b816f92b34920547003d9cbf45dc1aab /drivers
parent4ce19a38965ec4ea3addff41cf922b002d1a1cf3 (diff)
MA-13696 Android-auto: erase misc when change lock status
When change lock status, misc partition, which stores data generated by users, is erased. Before, we take different actions on misc partition for Android and Android Things. The situation of Android Auto is not handled. Change-Id: Ia290b8e351b7a688d7a3a562cd30fca858e5a30c Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/f_fastboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index b3cdff77ec..2898d71af4 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -3580,7 +3580,7 @@ static void wipe_all_userdata(void)
/* Erase /data partition */
fastboot_wipe_data_partition();
-#ifdef CONFIG_ANDROID_SUPPORT
+#if defined (CONFIG_ANDROID_SUPPORT) || defined (CONFIG_ANDROID_AUTO_SUPPORT)
/* Erase the misc partition. */
process_erase_mmc(FASTBOOT_PARTITION_MISC, response);
#endif