kerneltest/e32test/iic/iic_psl/i2c.cpp
changeset 33 0173bcd7697c
parent 0 a41df078684a
child 90 947f0dc9f7a8
child 256 c1f20ce4abcf
--- a/kerneltest/e32test/iic/iic_psl/i2c.cpp	Wed Dec 23 11:43:31 2009 +0000
+++ b/kerneltest/e32test/iic/iic_psl/i2c.cpp	Thu Jan 07 13:38:45 2010 +0200
@@ -125,10 +125,6 @@
 	aDes.Copy((TUint8*)&caps,size);
     }
 
-
-DSimulatedI2cDevice* gDummyDevice;
-
-
 // supported channels for this implementation
 static DIicBusChannel* ChannelPtrArray[NUM_CHANNELS];
 
@@ -136,12 +132,6 @@
 //DECLARE_EXTENSION_WITH_PRIORITY(BUS_IMPLMENTATION_PRIORITY)	
 DECLARE_STANDARD_PDD()		// I2c test driver to be explicitly loaded as an LDD, not kernel extension
 	{	
-	if(gDummyDevice == NULL)
-		gDummyDevice = new DSimulatedI2cDevice;
-	if(gDummyDevice == NULL)
-		return NULL;
-	I2C_PRINT(("\n\nI2C PDD, channel creation loop follows ...\n"));
-
 #ifndef STANDALONE_CHANNEL
 	DIicBusChannel* chan=NULL;
 	for(TInt i=0; i<NUM_CHANNELS; i++)
@@ -235,7 +225,7 @@
 		return NULL;
 		}
 #endif
-	return gDummyDevice;
+	return new DSimulatedI2cDevice;
 	}