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>
This commit is contained in:
parent
5c888aa43e
commit
6f32d03bc6
2 changed files with 2 additions and 2 deletions
|
@ -1211,7 +1211,7 @@ static int __devexit broadsheetfb_remove(struct platform_device *dev)
|
||||||
|
|
||||||
static struct platform_driver broadsheetfb_driver = {
|
static struct platform_driver broadsheetfb_driver = {
|
||||||
.probe = broadsheetfb_probe,
|
.probe = broadsheetfb_probe,
|
||||||
.remove = broadsheetfb_remove,
|
.remove = __devexit_p(broadsheetfb_remove),
|
||||||
.driver = {
|
.driver = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = "broadsheetfb",
|
.name = "broadsheetfb",
|
||||||
|
|
|
@ -1045,7 +1045,7 @@ static int __devexit mbxfb_remove(struct platform_device *dev)
|
||||||
|
|
||||||
static struct platform_driver mbxfb_driver = {
|
static struct platform_driver mbxfb_driver = {
|
||||||
.probe = mbxfb_probe,
|
.probe = mbxfb_probe,
|
||||||
.remove = mbxfb_remove,
|
.remove = __devexit_p(mbxfb_remove),
|
||||||
.suspend = mbxfb_suspend,
|
.suspend = mbxfb_suspend,
|
||||||
.resume = mbxfb_resume,
|
.resume = mbxfb_resume,
|
||||||
.driver = {
|
.driver = {
|
||||||
|
|
Loading…
Reference in a new issue