usb: ehci: disable HBM on uninit

In this fix we disable the HBM when uninit is called, as well as
remove redundant memory allocation.

Change-Id: I450f7c52686d297063ceeeb3e3eafea12b3ae9ec
Signed-off-by: Shimrit Malichi <smalichi@codeaurora.org>
diff --git a/drivers/usb/host/hbm.c b/drivers/usb/host/hbm.c
index f516ad8..d48a631 100644
--- a/drivers/usb/host/hbm.c
+++ b/drivers/usb/host/hbm.c
@@ -194,12 +194,6 @@
 		pr_err("%s: hbm_ctx alloc failed\n", __func__);
 		return;
 	}
-	hbm_ctx->base = kzalloc(sizeof(u32), GFP_KERNEL);
-	if (!hbm_ctx->base) {
-		pr_err("%s: hbm_ctx base alloc failed\n", __func__);
-		kfree(hbm_ctx);
-		return;
-	}
 
 	hbm_ctx->base = hcd->regs;
 	hbm_ctx->hcd = hcd;
@@ -214,7 +208,7 @@
 
 void hbm_uninit(void)
 {
-	kfree(hbm_ctx->base);
+	hbm_config(false);
 	kfree(hbm_ctx);
 }