Skip to contentSkip to conversation

backlight: ep93xx_bl: remove incorrect __exit annotation

PATCH Superseded Jingoo Han 2 participants 4 messages Mar 4, 2013 – Mar 5, 2013

Subsystems (2)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 backlight: ep93xx_bl: remove incorrect __exit annotation

When platform_driver_probe() is not used, bind/unbind via sysfs is enabled. Thus, __init/__exit annotations should be removed from probe()/remove().

---
 drivers/video/backlight/ep93xx_bl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/backlight/ep93xx_bl.c +1 -1
index ef3e21e..fd073b2 100644
@@ -60,7 +60,7 @@ static const struct backlight_ops ep93xxbl_ops = {
 	.get_brightness	= ep93xxbl_get_brightness,
 };
 
-static int __init ep93xxbl_probe(struct platform_device *dev)
+static int ep93xxbl_probe(struct platform_device *dev)
 {
 	struct ep93xxbl *ep93xxbl;
 	struct backlight_device *bl;
Signature · 1 line
1.7.2.5
author
#1 lore raw
Quoted 1 line · Jingoo Han

Subject: [PATCH] backlight: ep93xx_bl: remove incorrect __exit annotation

Sorry, subject is wrong.
__exit should be __init.

I will send the v2 patch, soon.

Quoted 25 lines

When platform_driver_probe() is not used, bind/unbind via sysfs is enabled. Thus, __init/__exit annotations should be removed from probe()/remove().

---
 drivers/video/backlight/ep93xx_bl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/backlight/ep93xx_bl.c +1 -2
index ef3e21e..fd073b2 100644
@@ -60,7 +60,7 @@ static const struct backlight_ops ep93xxbl_ops = {
 	.get_brightness	= ep93xxbl_get_brightness,
 };
 
-static int __init ep93xxbl_probe(struct platform_device *dev)
+static int ep93xxbl_probe(struct platform_device *dev)
 {
 	struct ep93xxbl *ep93xxbl;
 	struct backlight_device *bl;
--

1.7.2.5

author
#2 lore raw

PATCH v2 1/1 backlight: ep93xx_bl: remove incorrect __init annotation

In reply to Jingoo Han

When platform_driver_probe() is not used, bind/unbind via sysfs is enabled. Thus, __init/__exit annotations should be removed from probe()/remove().

---
Changes since v1:
- Fix typo of the subject: __exit --> __init

 drivers/video/backlight/ep93xx_bl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/backlight/ep93xx_bl.c +1 -1
index ef3e21e..fd073b2 100644
@@ -60,7 +60,7 @@ static const struct backlight_ops ep93xxbl_ops = {
 	.get_brightness	= ep93xxbl_get_brightness,
 };
 
-static int __init ep93xxbl_probe(struct platform_device *dev)
+static int ep93xxbl_probe(struct platform_device *dev)
 {
 	struct ep93xxbl *ep93xxbl;
 	struct backlight_device *bl;
Signature · 1 line
1.7.2.5
Acked-by on v2 1/1
#3 lore raw

Re: [PATCH V2] backlight: ep93xx_bl: remove incorrect __init annotation

Quoted 5 lines · Jingoo Han

When platform_driver_probe() is not used, bind/unbind via sysfs is enabled. Thus, __init/__exit annotations should be removed from probe()/remove().

Quoted 21 lines

---
Changes since v1:
- Fix typo of the subject: __exit --> __init

 drivers/video/backlight/ep93xx_bl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/backlight/ep93xx_bl.c +1 -1
index ef3e21e..fd073b2 100644
@@ -60,7 +60,7 @@ static const struct backlight_ops ep93xxbl_ops = {
 	.get_brightness	= ep93xxbl_get_brightness,
 };
 
-static int __init ep93xxbl_probe(struct platform_device *dev)
+static int ep93xxbl_probe(struct platform_device *dev)
 {
 	struct ep93xxbl *ep93xxbl;
 	struct backlight_device *bl;