Skip to content

Commit 0123055

Browse files
jhovoldgregkh
authored andcommitted
w1-gpio: remove erroneous __exit and __exit_p()
Commit 8a1861d ("w1-gpio: Simplify & get rid of defines") changed (apparently unknowingly) the driver to a hotpluggable platform-device driver but did not not update the section markers for probe and remove (to __devinit/exit, which have since been removed). A later commit fixed the section mismatch for probe, but left remove marked with __exit. Signed-off-by: Johan Hovold <[email protected]> Cc: stable <[email protected]> # 3.8 Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2d798a3 commit 0123055

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/w1/masters/w1-gpio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static int w1_gpio_probe(struct platform_device *pdev)
158158
return err;
159159
}
160160

161-
static int __exit w1_gpio_remove(struct platform_device *pdev)
161+
static int w1_gpio_remove(struct platform_device *pdev)
162162
{
163163
struct w1_bus_master *master = platform_get_drvdata(pdev);
164164
struct w1_gpio_platform_data *pdata = pdev->dev.platform_data;
@@ -210,7 +210,7 @@ static struct platform_driver w1_gpio_driver = {
210210
.of_match_table = of_match_ptr(w1_gpio_dt_ids),
211211
},
212212
.probe = w1_gpio_probe,
213-
.remove = __exit_p(w1_gpio_remove),
213+
.remove = w1_gpio_remove,
214214
.suspend = w1_gpio_suspend,
215215
.resume = w1_gpio_resume,
216216
};

0 commit comments

Comments
 (0)