platform: msm_shared: Use malloc to allocate memory for USB endpoint

The dwc_ep_t struct takes more space on stack and causes stack overflow,
Avoid overflow by allocating memory from heap.

CRs-Fixed: 641101
Change-Id: Ia5e69c555bdcab6b93d2d4758819dd78a6bde795
diff --git a/platform/msm_shared/usb30_dwc.h b/platform/msm_shared/usb30_dwc.h
index 7a222ff..5a43696 100644
--- a/platform/msm_shared/usb30_dwc.h
+++ b/platform/msm_shared/usb30_dwc.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -449,7 +449,7 @@
 void dwc_device_set_addr(dwc_dev_t *dev, uint16_t addr);
 void dwc_device_set_configuration(dwc_dev_t *dev);
 void dwc_device_set_periodic_param(dwc_dev_t *dev, uint32_t val);
-void dwc_device_add_ep(dwc_dev_t *dev, dwc_ep_t new_ep);
+void dwc_device_add_ep(dwc_dev_t *dev, dwc_ep_t *new_ep);
 
 /* data transfer apis */
 int dwc_transfer_request(dwc_dev_t *dwc,