summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-05-15 15:02:57 -0600
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-06-09 12:51:11 +0000
commit6f32d03bc63ab27f5e21d40c4ec81e18d991f424 (patch)
tree012a4622b16c2c19c53e8855577eccd1818a24fc /drivers/video
parent5c888aa43ee9872efe2a09e8c9f03db84f60dd28 (diff)
downloadlinux-3.10-6f32d03bc63ab27f5e21d40c4ec81e18d991f424.tar.gz
linux-3.10-6f32d03bc63ab27f5e21d40c4ec81e18d991f424.tar.bz2
linux-3.10-6f32d03bc63ab27f5e21d40c4ec81e18d991f424.zip
drivers/video: use correct __devexit_p annotation
__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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/broadsheetfb.c2
-rw-r--r--drivers/video/mbx/mbxfb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/broadsheetfb.c b/drivers/video/broadsheetfb.c
index 377dde3d5bf..c95b417d0d4 100644
--- a/drivers/video/broadsheetfb.c
+++ b/drivers/video/broadsheetfb.c
@@ -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",
diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c
index ab0a8e52733..85e4f44bfa6 100644
--- a/drivers/video/mbx/mbxfb.c
+++ b/drivers/video/mbx/mbxfb.c
@@ -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 = {