Skip to contentSkip to conversation

video: platinumfb: Add __devexit_p at necessary place

PATCH Applied Axel Lin 2 participants 2 messages Oct 5, 2011 – Oct 16, 2011 Framebuffer layer

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 video: platinumfb: Add __devexit_p at necessary place

According to the comments in include/linux/init.h:

"Pointers to __devexit functions must use __devexit_p(function_name), the wrapper will insert either the function_name or NULL, depending on the config options."

We have __devexit annotation for platinumfb_remove(), thus add __devexit_p at necessary place.

---
 drivers/video/platinumfb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/platinumfb.c +1 -1
index 6694923..ae3caa6 100644
@@ -683,7 +683,7 @@ static struct platform_driver platinum_driver  		.of_match_table = platinumfb_match,
 	},
 	.probe		= platinumfb_probe,
-	.remove		= platinumfb_remove,
+	.remove		= __devexit_p(platinumfb_remove),
 };
 
 static int __init platinumfb_init(void)
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 8 lines · Axel Lin

According to the comments in include/linux/init.h:

"Pointers to __devexit functions must use __devexit_p(function_name), the wrapper will insert either the function_name or NULL, depending on the config options."

We have __devexit annotation for platinumfb_remove(), thus add __devexit_p at necessary place.

Applied.

Thanks,

Florian Tobias Schandinat

Quoted 18 lines
---
 drivers/video/platinumfb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/platinumfb.c +1 -1
index 6694923..ae3caa6 100644
@@ -683,7 +683,7 @@ static struct platform_driver platinum_driver >  		.of_match_table = platinumfb_match,
 	},
 	.probe		= platinumfb_probe,
-	.remove		= platinumfb_remove,
+	.remove		= __devexit_p(platinumfb_remove),
 };
 
 static int __init platinumfb_init(void)