[PATCH] i2c driver fixes for 2.6.4

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

 



ChangeSet 1.1608.74.5, 2004/03/09 14:59:37-08:00, rddunlap at osdl.org

[PATCH] I2C: fix i2c-prosavage.c section usage

prosavage_remove() is called during init, so it shouldn't be
marked as exit code.  (It matters when CONFIG_HOTPLUG=n.)


 drivers/i2c/busses/i2c-prosavage.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/drivers/i2c/busses/i2c-prosavage.c b/drivers/i2c/busses/i2c-prosavage.c
--- a/drivers/i2c/busses/i2c-prosavage.c	Mon Mar 15 14:34:55 2004
+++ b/drivers/i2c/busses/i2c-prosavage.c	Mon Mar 15 14:34:55 2004
@@ -216,7 +216,7 @@
 /*
  * Cleanup stuff
  */
-static void __devexit prosavage_remove(struct pci_dev *dev)
+static void prosavage_remove(struct pci_dev *dev)
 {
 	struct s_i2c_chip *chip;
 	int i, ret;
@@ -321,7 +321,7 @@
 	.name		=	"prosavage-smbus",
 	.id_table	=	prosavage_pci_tbl,
 	.probe		=	prosavage_probe,
-	.remove		=	__devexit_p(prosavage_remove),
+	.remove		=	prosavage_remove,
 };
 
 static int __init i2c_prosavage_init(void)




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

  Powered by Linux