* [PATCH 1/2] w1-gpio: remove erroneous __exit and __exit_p()
@ 2013-03-08 10:07 Johan Hovold
2013-03-08 10:08 ` [PATCH 2/2] w1-gpio: fix unused variable warning Johan Hovold
2013-03-12 2:10 ` [PATCH 1/2] w1-gpio: remove erroneous __exit and __exit_p() Evgeniy Polyakov
0 siblings, 2 replies; 3+ messages in thread
From: Johan Hovold @ 2013-03-08 10:07 UTC (permalink / raw)
To: Evgeniy Polyakov; +Cc: Greg Kroah-Hartman, linux-kernel, Johan Hovold
Commit 8a1861d997 ("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 <jhovold@gmail.com>
---
drivers/w1/masters/w1-gpio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/w1/masters/w1-gpio.c b/drivers/w1/masters/w1-gpio.c
index d39dfa4..012817a 100644
--- a/drivers/w1/masters/w1-gpio.c
+++ b/drivers/w1/masters/w1-gpio.c
@@ -158,7 +158,7 @@ static int w1_gpio_probe(struct platform_device *pdev)
return err;
}
-static int __exit w1_gpio_remove(struct platform_device *pdev)
+static int w1_gpio_remove(struct platform_device *pdev)
{
struct w1_bus_master *master = platform_get_drvdata(pdev);
struct w1_gpio_platform_data *pdata = pdev->dev.platform_data;
@@ -210,7 +210,7 @@ static struct platform_driver w1_gpio_driver = {
.of_match_table = of_match_ptr(w1_gpio_dt_ids),
},
.probe = w1_gpio_probe,
- .remove = __exit_p(w1_gpio_remove),
+ .remove = w1_gpio_remove,
.suspend = w1_gpio_suspend,
.resume = w1_gpio_resume,
};
--
1.8.1.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] w1-gpio: fix unused variable warning
2013-03-08 10:07 [PATCH 1/2] w1-gpio: remove erroneous __exit and __exit_p() Johan Hovold
@ 2013-03-08 10:08 ` Johan Hovold
2013-03-12 2:10 ` [PATCH 1/2] w1-gpio: remove erroneous __exit and __exit_p() Evgeniy Polyakov
1 sibling, 0 replies; 3+ messages in thread
From: Johan Hovold @ 2013-03-08 10:08 UTC (permalink / raw)
To: Evgeniy Polyakov; +Cc: Greg Kroah-Hartman, linux-kernel, Johan Hovold
Commit 8a1861d997 ("w1-gpio: Simplify & get rid of defines") removed the
compile guards from the device-tree id table, thereby generating a
warning when building without device-tree support.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
---
drivers/w1/masters/w1-gpio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/w1/masters/w1-gpio.c b/drivers/w1/masters/w1-gpio.c
index 012817a..46d9701 100644
--- a/drivers/w1/masters/w1-gpio.c
+++ b/drivers/w1/masters/w1-gpio.c
@@ -47,11 +47,13 @@ static u8 w1_gpio_read_bit(void *data)
return gpio_get_value(pdata->pin) ? 1 : 0;
}
+#if defined(CONFIG_OF)
static struct of_device_id w1_gpio_dt_ids[] = {
{ .compatible = "w1-gpio" },
{}
};
MODULE_DEVICE_TABLE(of, w1_gpio_dt_ids);
+#endif
static int w1_gpio_probe_dt(struct platform_device *pdev)
{
--
1.8.1.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] w1-gpio: remove erroneous __exit and __exit_p()
2013-03-08 10:07 [PATCH 1/2] w1-gpio: remove erroneous __exit and __exit_p() Johan Hovold
2013-03-08 10:08 ` [PATCH 2/2] w1-gpio: fix unused variable warning Johan Hovold
@ 2013-03-12 2:10 ` Evgeniy Polyakov
1 sibling, 0 replies; 3+ messages in thread
From: Evgeniy Polyakov @ 2013-03-12 2:10 UTC (permalink / raw)
To: Johan Hovold; +Cc: Greg Kroah-Hartman, linux-kernel
Hi
On Fri, Mar 08, 2013 at 11:07:59AM +0100, Johan Hovold (jhovold@gmail.com) wrote:
> Commit 8a1861d997 ("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 <jhovold@gmail.com>
Both patches look good to me, thank you
Greg, please pull it into your tree
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
--
Evgeniy Polyakov
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-12 2:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-08 10:07 [PATCH 1/2] w1-gpio: remove erroneous __exit and __exit_p() Johan Hovold
2013-03-08 10:08 ` [PATCH 2/2] w1-gpio: fix unused variable warning Johan Hovold
2013-03-12 2:10 ` [PATCH 1/2] w1-gpio: remove erroneous __exit and __exit_p() Evgeniy Polyakov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox