Skip to content

Commit

Permalink
drivers/video: use correct __devexit_p annotation
Browse files Browse the repository at this point in the history
__devexit functions are discarded when CONFIG_HOTPLUG
is not set, so the symbol needs to be referenced carefully.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
  • Loading branch information
Arnd Bergmann authored and Florian Tobias Schandinat committed Jun 9, 2012
1 parent 5c888aa commit 6f32d03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/video/broadsheetfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ static int __devexit broadsheetfb_remove(struct platform_device *dev)

static struct platform_driver broadsheetfb_driver = {
.probe = broadsheetfb_probe,
.remove = broadsheetfb_remove,
.remove = __devexit_p(broadsheetfb_remove),
.driver = {
.owner = THIS_MODULE,
.name = "broadsheetfb",
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/mbx/mbxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ static int __devexit mbxfb_remove(struct platform_device *dev)

static struct platform_driver mbxfb_driver = {
.probe = mbxfb_probe,
.remove = mbxfb_remove,
.remove = __devexit_p(mbxfb_remove),
.suspend = mbxfb_suspend,
.resume = mbxfb_resume,
.driver = {
Expand Down

0 comments on commit 6f32d03

Please sign in to comment.