mtd/drivers/mtd/nand nand_base.c,1.119,1.120

bjd at infradead.org bjd at infradead.org
Fri Sep 24 20:10:37 EDT 2004


Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/home/bjd/mtd/drivers/mtd/nand

Modified Files:
	nand_base.c 
Log Message:
fixed compile errors from using . instead of ->


Index: nand_base.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_base.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -r1.119 -r1.120
--- nand_base.c	23 Sep 2004 23:51:46 -0000	1.119
+++ nand_base.c	25 Sep 2004 00:10:34 -0000	1.120
@@ -151,9 +151,9 @@
 	this->select_chip(mtd, -1);
 	/* Do we have a hardware controller ? */
 	if (this->controller) {
-		spin_lock(&this->controller.lock);
-		this->controller.active = NULL;
-		spin_unlock(&this->controller.lock);
+		spin_lock(&this->controller->lock);
+		this->controller->active = NULL;
+		spin_unlock(&this->controller->lock);
 	}
 	/* Release the chip */
 	spin_lock (&this->chip_lock);
@@ -718,12 +718,12 @@
 retry:
 	/* Hardware controller shared among independend devices */
 	if (this->controller) {
-		spin_lock (&this->controller.lock);
-		if (this->controller.active)
-			active = this->controller.active;
+		spin_lock (&this->controller->lock);
+		if (this->controller->active)
+			active = this->controller->active;
 		else
-			this->controller.active = this;
-		spin_unlock (&this->controller.lock);
+			this->controller->active = this;
+		spin_unlock (&this->controller->lock);
 	}
 	
 	if (active == this) {





More information about the linux-mtd-cvs mailing list