]> git.karo-electronics.de Git - linux-beck.git/commitdiff
misc: add missing __devexit_p() annotations
authorArnd Bergmann <arnd@arndb.de>
Sat, 14 Apr 2012 16:25:03 +0000 (10:25 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Apr 2012 21:54:31 +0000 (14:54 -0700)
Drivers that refer to a __devexit function in an operations
structure need to annotate that pointer with __devexit_p so it
is replaced with a NULL pointer when the section gets discarded.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/bh1780gli.c
drivers/misc/pti.c

index 54f6f39f990a6a99a87b89eef923c79be18a87b8..f1f9877f3fdf5e9ea3ca41e41eeb8d98a9b96e47 100644 (file)
@@ -248,7 +248,7 @@ static const struct i2c_device_id bh1780_id[] = {
 
 static struct i2c_driver bh1780_driver = {
        .probe          = bh1780_probe,
-       .remove         = bh1780_remove,
+       .remove         = __devexit_p(bh1780_remove),
        .id_table       = bh1780_id,
        .driver = {
                .name = "bh1780",
index 383133b201a1ce34c73e4432b42c52fc2bc61032..b7eb545394b1c0c2e3d01aa50d29829af90619e6 100644 (file)
@@ -888,7 +888,7 @@ static struct pci_driver pti_pci_driver = {
        .name           = PCINAME,
        .id_table       = pci_ids,
        .probe          = pti_pci_probe,
-       .remove         = pti_pci_remove,
+       .remove         = __devexit_p(pti_pci_remove),
 };
 
 /**