backlight: ep93xx_bl: remove incorrect __exit annotation
Subsystems (2)
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
@@ -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
Quoted 1 line · Jingoo Han
Subject: [PATCH] backlight:
ep93xx_bl: remove incorrect__exitannotation
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().Signed-off-by Jingoo Han <[email protected]>--- drivers/video/backlight/ep93xx_bl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/video/backlight/ep93xx_bl.c +1
-2@@ -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
PATCH v2 1/1 backlight: ep93xx_bl: remove incorrect __init annotation
In reply to Jingoo HanWhen 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
@@ -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
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().Signed-off-by Jingoo Han <[email protected]>
Quoted 21 lines
---
Changes since v1:
- Fix typo of the subject:__exit-->__initdrivers/video/backlight/ep93xx_bl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/video/backlight/ep93xx_bl.c +1
-1@@ -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;