wlan: Fix compilation errors.
Resolve compilation errors when macro 'CONFIG_ENABLE_LINUX_REG' is
disabled.
Change-Id: I0f08092c49dfeb56908672169973c20360fa135e
CRs-Fixed: 693838
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 15039af..65b10c8 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -9122,7 +9122,9 @@
err_close_adapter:
hdd_close_all_adapters( pHddCtx );
+#ifdef CONFIG_ENABLE_LINUX_REG
err_unregister_wiphy:
+#endif
wiphy_unregister(wiphy) ;
err_vosstop:
vos_stop(pVosContext);