Skip to content

Commit

Permalink
misc: add missing __devexit_p() annotations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnd Bergmann authored and Greg Kroah-Hartman committed Apr 18, 2012
1 parent 2d24bd1 commit 2dc60c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/misc/bh1780gli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion drivers/misc/pti.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};

/**
Expand Down

0 comments on commit 2dc60c5

Please sign in to comment.