Re: [PATCH] i2c driver fixes for 2.6.4

From: Greg KH
Date: Mon Mar 15 2004 - 21:09:11 EST


ChangeSet 1.1608.74.5, 2004/03/09 14:59:37-08:00, rddunlap@xxxxxxxx

[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)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/