[PATCH] i2c driver changes for 2.5.65

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ChangeSet 1.1143.1.5, 2003/03/18 17:10:51-08:00, greg at kroah.com

[PATCH] i2c i2c-piix4.c: remove check_region() call.


 drivers/i2c/busses/i2c-piix4.c |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)


diff -Nru a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c/busses/i2c-piix4.c
--- a/drivers/i2c/busses/i2c-piix4.c	Thu Mar 20 12:56:54 2003
+++ b/drivers/i2c/busses/i2c-piix4.c	Thu Mar 20 12:56:54 2003
@@ -149,7 +149,7 @@
 		}
 	}
 
-	if (check_region(piix4_smba, 8)) {
+	if (!request_region(piix4_smba, 8, "piix4-smbus")) {
 		printk
 		    (KERN_ERR "i2c-piix4.o: SMB region 0x%x already in use!\n",
 		     piix4_smba);
@@ -187,9 +187,6 @@
 			goto END;
 		}
 	}
-
-	/* Everything is happy, let's grab the memory and set things up. */
-	request_region(piix4_smba, 8, "piix4-smbus");
 
 #ifdef DEBUG
 	if ((temp & 0x0E) == 8)



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux