usbmgmt/usbmgr/usbman/server/SRC/CUsbOtg.cpp
changeset 48 21625e5de155
parent 29 59aa7d6e3e0f
--- a/usbmgmt/usbmgr/usbman/server/SRC/CUsbOtg.cpp	Wed Aug 25 15:55:37 2010 +0800
+++ b/usbmgmt/usbmgr/usbman/server/SRC/CUsbOtg.cpp	Mon Sep 06 11:27:08 2010 +0800
@@ -34,8 +34,10 @@
 #endif
 
 
+#ifndef __OVER_DUMMYUSBDI__
 //Name used in call to User::LoadLogicalDevice/User::FreeLogicalDevice
 _LIT(KUsbOtgLDDName,"otgdi");
+#endif
 
 
 
@@ -145,6 +147,7 @@
 		
 		}
 
+#ifndef __OVER_DUMMYUSBDI__
 	OstTrace0( TRACE_NORMAL, CUSBOTG_CUSBOTG_DUP13, "CUsbOtg::~CUsbOtg; Freeing logical device" );
 	
 	TInt err = User::FreeLogicalDevice(KUsbOtgLDDName);
@@ -155,6 +158,7 @@
 		OstTrace1( TRACE_NORMAL, CUSBOTG_CUSBOTG_DUP14, "CUsbOtg::~CUsbOtg;     User::FreeLogicalDevice returned %d", err );
 		
 		}
+#endif
 	
 	iCriticalSection.Close();
 	OstTraceFunctionExit0( CUSBOTG_CUSBOTG_DES_EXIT );
@@ -179,6 +183,7 @@
 	{
 	OstTraceFunctionEntry0( CUSBOTG_CONSTRUCTL_ENTRY );
 	
+#ifndef __OVER_DUMMYUSBDI__
 	OstTrace0( TRACE_NORMAL, CUSBOTG_CONSTRUCTL, "CUsbOtg::ConstructL; About to open LDD" );
 	
 	iLastError = User::LoadLogicalDevice(KUsbOtgLDDName);
@@ -190,6 +195,8 @@
             User::Leave(iLastError);
             }
 		}
+#endif
+	
 	OstTrace0( TRACE_NORMAL, CUSBOTG_CONSTRUCTL_DUP3, "CUsbOtg::ConstructL; About to open RUsbOtgDriver" );
 	
 	iLastError = iOtgDriver.Open();