mtd/drivers/mtd/devices ramtd.c,1.1,1.2

lavinen at infradead.org lavinen at infradead.org
Fri May 20 08:41:29 EDT 2005


Update of /home/cvs/mtd/drivers/mtd/devices
In directory phoenix.infradead.org:/tmp/cvs-serv22496

Modified Files:
	ramtd.c 
Log Message:
Removed all traces of TRACE().


Index: ramtd.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/ramtd.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ramtd.c	13 May 2005 09:45:48 -0000	1.1
+++ ramtd.c	20 May 2005 12:41:26 -0000	1.2
@@ -24,7 +24,6 @@
 
 static void *get_pool_page(void)
 {
-	TRACE();
 	void *ret = (void*)__get_free_page(GFP_KERNEL);
 	return ret;
 }
@@ -32,7 +31,6 @@
 
 static void free_pool_page(void *page)
 {
-	TRACE();
 	free_page((unsigned long)page);
 }
 
@@ -43,7 +41,6 @@
 	u32 addr = instr->addr;
 	u32 len = instr->len;
 
-	TRACE();
 	if (addr + len > mtd->size)
 		return -EINVAL;
 	if (addr % PAGE_SIZE)
@@ -74,7 +71,6 @@
 {
 	struct ramtd *ramtd = container_of(mtd, typeof(*ramtd), mtd);
 
-	TRACE();
 	if (from >= mtd->size)
 		return -EINVAL;
 
@@ -107,7 +103,6 @@
 {
 	struct ramtd *ramtd = container_of(mtd, typeof(*ramtd), mtd);
 
-	TRACE();
 	if (to >= mtd->size)
 		return -EINVAL;
 
@@ -123,14 +118,12 @@
 
 		down_interruptible(&ramtd_mutex);
 		if (!ramtd->page[page]) {
-			TRACE();
 			ramtd->page[page] = get_pool_page;
 			memset(ramtd->page[page], 0xff, PAGE_SIZE);
 		}
 		if (!ramtd->page[page])
 			return -EIO;
 
-		TRACE();
 		memcpy(ramtd->page[page] + ofs, buf, wlen);
 		up(&ramtd_mutex);
 
@@ -148,7 +141,6 @@
 	struct ramtd *new;
 	u32 pages_size;
 
-	TRACE();
 	size = PAGE_ALIGN(size);
 	pages_size = size / PAGE_SIZE * sizeof(void*);
 	new = vmalloc(sizeof(*new) + pages_size);
@@ -180,7 +172,6 @@
 
 static int __init ramtd_init(void)
 {
-	TRACE();
 	return register_device("ramtd", 4*1024*1024); /* FIXME */
 }
 
@@ -188,7 +179,6 @@
 {
 	struct ramtd *this, *next;
 
-	TRACE();
 	down_interruptible(&ramtd_mutex);
 	list_for_each_entry_safe(this, next, &ramtd_list, list) {
 		del_mtd_device(&this->mtd);





More information about the linux-mtd-cvs mailing list