* [PATCH 2/4] Input: cyttsp4_core - Remove redundant dev_set_drvdata
2013-09-06 18:08 [PATCH 1/4] Input: cobalt_btns - Remove redundant dev_set_drvdata Sachin Kamat
@ 2013-09-06 18:08 ` Sachin Kamat
2013-09-06 18:08 ` [PATCH 3/4] Input: htcpen " Sachin Kamat
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Sachin Kamat @ 2013-09-06 18:08 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, sachin.kamat, Ferruh Yigit
Driver core sets the data to NULL upon release or probe
failure. Hence explicit setting is not necessary.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Ferruh Yigit <fery@cypress.com>
---
drivers/input/touchscreen/cyttsp4_core.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c
index d038575..42d830e 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -2113,7 +2113,6 @@ error_startup:
error_request_irq:
if (cd->cpdata->init)
cd->cpdata->init(cd->cpdata, 0, dev);
- dev_set_drvdata(dev, NULL);
error_free_xfer:
kfree(cd->xfer_buf);
error_free_cd:
@@ -2151,7 +2150,6 @@ int cyttsp4_remove(struct cyttsp4 *cd)
free_irq(cd->irq, cd);
if (cd->cpdata->init)
cd->cpdata->init(cd->cpdata, 0, dev);
- dev_set_drvdata(dev, NULL);
cyttsp4_free_si_ptrs(cd);
kfree(cd);
return 0;
--
1.7.4.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/4] Input: htcpen - Remove redundant dev_set_drvdata
2013-09-06 18:08 [PATCH 1/4] Input: cobalt_btns - Remove redundant dev_set_drvdata Sachin Kamat
2013-09-06 18:08 ` [PATCH 2/4] Input: cyttsp4_core " Sachin Kamat
@ 2013-09-06 18:08 ` Sachin Kamat
2013-09-06 18:08 ` [PATCH 4/4] Input: rb532_button " Sachin Kamat
2013-09-17 9:11 ` [PATCH 1/4] Input: cobalt_btns " Sachin Kamat
3 siblings, 0 replies; 6+ messages in thread
From: Sachin Kamat @ 2013-09-06 18:08 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, sachin.kamat, Pau Oliva Fora
Driver core sets the data to NULL upon release or probe
failure. Hence explicit setting is not necessary.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Pau Oliva Fora <pof@eslack.org>
---
drivers/input/touchscreen/htcpen.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/input/touchscreen/htcpen.c b/drivers/input/touchscreen/htcpen.c
index 6650085..92e2243 100644
--- a/drivers/input/touchscreen/htcpen.c
+++ b/drivers/input/touchscreen/htcpen.c
@@ -186,8 +186,6 @@ static int htcpen_isa_remove(struct device *dev, unsigned int id)
release_region(HTCPEN_PORT_INIT, 1);
release_region(HTCPEN_PORT_IRQ_CLEAR, 1);
- dev_set_drvdata(dev, NULL);
-
return 0;
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 4/4] Input: rb532_button - Remove redundant dev_set_drvdata
2013-09-06 18:08 [PATCH 1/4] Input: cobalt_btns - Remove redundant dev_set_drvdata Sachin Kamat
2013-09-06 18:08 ` [PATCH 2/4] Input: cyttsp4_core " Sachin Kamat
2013-09-06 18:08 ` [PATCH 3/4] Input: htcpen " Sachin Kamat
@ 2013-09-06 18:08 ` Sachin Kamat
2013-09-17 9:11 ` [PATCH 1/4] Input: cobalt_btns " Sachin Kamat
3 siblings, 0 replies; 6+ messages in thread
From: Sachin Kamat @ 2013-09-06 18:08 UTC (permalink / raw)
To: linux-input; +Cc: dmitry.torokhov, sachin.kamat
Driver core sets the data to NULL upon release or probe
failure. Hence explicit setting is not necessary.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/input/misc/rb532_button.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/input/misc/rb532_button.c b/drivers/input/misc/rb532_button.c
index fb4f8ac..83fff38 100644
--- a/drivers/input/misc/rb532_button.c
+++ b/drivers/input/misc/rb532_button.c
@@ -87,7 +87,6 @@ static int rb532_button_remove(struct platform_device *pdev)
input_unregister_polled_device(poll_dev);
input_free_polled_device(poll_dev);
- dev_set_drvdata(&pdev->dev, NULL);
return 0;
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/4] Input: cobalt_btns - Remove redundant dev_set_drvdata
2013-09-06 18:08 [PATCH 1/4] Input: cobalt_btns - Remove redundant dev_set_drvdata Sachin Kamat
` (2 preceding siblings ...)
2013-09-06 18:08 ` [PATCH 4/4] Input: rb532_button " Sachin Kamat
@ 2013-09-17 9:11 ` Sachin Kamat
2013-09-18 14:49 ` Dmitry Torokhov
3 siblings, 1 reply; 6+ messages in thread
From: Sachin Kamat @ 2013-09-17 9:11 UTC (permalink / raw)
To: linux-input@vger.kernel.org; +Cc: Dmitry Torokhov, Sachin Kamat
Hi Dmitry,
Now that the merge window is closed, a gentle ping on this series :)
On 6 September 2013 23:38, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Driver core sets the data to NULL upon release or probe
> failure. Hence explicit setting is not necessary.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Yoichi Yuasa <yuasa@linux-mips.org>
> ---
> drivers/input/misc/cobalt_btns.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/input/misc/cobalt_btns.c b/drivers/input/misc/cobalt_btns.c
> index 4f77f87..b5d71d2 100644
> --- a/drivers/input/misc/cobalt_btns.c
> +++ b/drivers/input/misc/cobalt_btns.c
> @@ -131,7 +131,6 @@ static int cobalt_buttons_probe(struct platform_device *pdev)
> err_free_mem:
> input_free_polled_device(poll_dev);
> kfree(bdev);
> - dev_set_drvdata(&pdev->dev, NULL);
> return error;
> }
>
> @@ -144,7 +143,6 @@ static int cobalt_buttons_remove(struct platform_device *pdev)
> input_free_polled_device(bdev->poll_dev);
> iounmap(bdev->reg);
> kfree(bdev);
> - dev_set_drvdata(dev, NULL);
>
> return 0;
> }
> --
> 1.7.4.1
>
--
With warm regards,
Sachin
^ permalink raw reply [flat|nested] 6+ messages in thread