* RE: [PATCH] PM / devfreq: rk3399_dmc: Remove explictly regulator_put call in .remove [not found] <CGME20160918024124epcas1p26e45dd69c71bdcded5b336c87f1b246b@epcas1p2.samsung.com> @ 2016-09-19 7:44 ` MyungJoo Ham 2016-09-19 11:08 ` Rafael J. Wysocki 0 siblings, 1 reply; 4+ messages in thread From: MyungJoo Ham @ 2016-09-19 7:44 UTC (permalink / raw) To: Axel Lin; +Cc: Kyungmin Park, Lin Huang, Chanwoo Choi, linux-pm@vger.kernel.org [-- Attachment #1: Type: text/plain, Size: 545 bytes --] > Current code uses devm_regulator_get() in .probe so a regulator_put() will > be automatically called when unload the module. Remove the explictly > regulator_put() call and then we can also remove rk3399_dmcfreq_remove(). > > Signed-off-by: Axel Lin <axel.lin@ingics.com> > --- > drivers/devfreq/rk3399_dmc.c | 10 ---------- > 1 file changed, 10 deletions(-) Thank you. Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Being tested at: https://git.kernel.org/cgit/linux/kernel/git/mzx/devfreq.git/log/?h=for-4.9-rc ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] PM / devfreq: rk3399_dmc: Remove explictly regulator_put call in .remove 2016-09-19 7:44 ` [PATCH] PM / devfreq: rk3399_dmc: Remove explictly regulator_put call in .remove MyungJoo Ham @ 2016-09-19 11:08 ` Rafael J. Wysocki 0 siblings, 0 replies; 4+ messages in thread From: Rafael J. Wysocki @ 2016-09-19 11:08 UTC (permalink / raw) To: Myungjoo Ham Cc: Axel Lin, Kyungmin Park, Lin Huang, Chanwoo Choi, linux-pm@vger.kernel.org On Mon, Sep 19, 2016 at 9:44 AM, MyungJoo Ham <myungjoo.ham@samsung.com> wrote: >> Current code uses devm_regulator_get() in .probe so a regulator_put() will >> be automatically called when unload the module. Remove the explictly >> regulator_put() call and then we can also remove rk3399_dmcfreq_remove(). >> >> Signed-off-by: Axel Lin <axel.lin@ingics.com> >> --- >> drivers/devfreq/rk3399_dmc.c | 10 ---------- >> 1 file changed, 10 deletions(-) > > Thank you. > > > Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Sign-off-by is for three cases: (1) You send a patch you created. (2) You send a patch from someone else (ie. you're not the author of it). (3) You apply a patch. Otherwise, please use Acked-by (and I'm going to add that to this patch and to the other one you responded to with an S-o-b). Thanks, Rafael ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CGME20160918024126epcas1p16b581f05e978e0e2014bb20a47e82aec@epcas1p1.samsung.com>]
* [PATCH] PM / devfreq: rk3399_dmc: Remove explictly regulator_put call in .remove @ 2016-09-18 2:41 ` Axel Lin 2016-09-19 0:16 ` Chanwoo Choi 0 siblings, 1 reply; 4+ messages in thread From: Axel Lin @ 2016-09-18 2:41 UTC (permalink / raw) To: MyungJoo Ham; +Cc: Kyungmin Park, Lin Huang, Chanwoo Choi, linux-pm, Axel Lin Current code uses devm_regulator_get() in .probe so a regulator_put() will be automatically called when unload the module. Remove the explictly regulator_put() call and then we can also remove rk3399_dmcfreq_remove(). Signed-off-by: Axel Lin <axel.lin@ingics.com> --- drivers/devfreq/rk3399_dmc.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c index 54d65f2..e24b73d 100644 --- a/drivers/devfreq/rk3399_dmc.c +++ b/drivers/devfreq/rk3399_dmc.c @@ -450,15 +450,6 @@ static int rk3399_dmcfreq_probe(struct platform_device *pdev) return 0; } -static int rk3399_dmcfreq_remove(struct platform_device *pdev) -{ - struct rk3399_dmcfreq *dmcfreq = platform_get_drvdata(pdev); - - regulator_put(dmcfreq->vdd_center); - - return 0; -} - static const struct of_device_id rk3399dmc_devfreq_of_match[] = { { .compatible = "rockchip,rk3399-dmc" }, { }, @@ -466,7 +457,6 @@ static const struct of_device_id rk3399dmc_devfreq_of_match[] = { static struct platform_driver rk3399_dmcfreq_driver = { .probe = rk3399_dmcfreq_probe, - .remove = rk3399_dmcfreq_remove, .driver = { .name = "rk3399-dmc-freq", .pm = &rk3399_dmcfreq_pm, -- 2.7.4 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] PM / devfreq: rk3399_dmc: Remove explictly regulator_put call in .remove 2016-09-18 2:41 ` Axel Lin @ 2016-09-19 0:16 ` Chanwoo Choi 0 siblings, 0 replies; 4+ messages in thread From: Chanwoo Choi @ 2016-09-19 0:16 UTC (permalink / raw) To: Axel Lin, MyungJoo Ham; +Cc: Kyungmin Park, Lin Huang, linux-pm Hi, Looks good to me. Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Best Regards, Chanwoo Choi On 2016년 09월 18일 11:41, Axel Lin wrote: > Current code uses devm_regulator_get() in .probe so a regulator_put() will > be automatically called when unload the module. Remove the explictly > regulator_put() call and then we can also remove rk3399_dmcfreq_remove(). > > Signed-off-by: Axel Lin <axel.lin@ingics.com> > --- > drivers/devfreq/rk3399_dmc.c | 10 ---------- > 1 file changed, 10 deletions(-) > > diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c > index 54d65f2..e24b73d 100644 > --- a/drivers/devfreq/rk3399_dmc.c > +++ b/drivers/devfreq/rk3399_dmc.c > @@ -450,15 +450,6 @@ static int rk3399_dmcfreq_probe(struct platform_device *pdev) > return 0; > } > > -static int rk3399_dmcfreq_remove(struct platform_device *pdev) > -{ > - struct rk3399_dmcfreq *dmcfreq = platform_get_drvdata(pdev); > - > - regulator_put(dmcfreq->vdd_center); > - > - return 0; > -} > - > static const struct of_device_id rk3399dmc_devfreq_of_match[] = { > { .compatible = "rockchip,rk3399-dmc" }, > { }, > @@ -466,7 +457,6 @@ static const struct of_device_id rk3399dmc_devfreq_of_match[] = { > > static struct platform_driver rk3399_dmcfreq_driver = { > .probe = rk3399_dmcfreq_probe, > - .remove = rk3399_dmcfreq_remove, > .driver = { > .name = "rk3399-dmc-freq", > .pm = &rk3399_dmcfreq_pm, > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-09-19 11:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20160918024124epcas1p26e45dd69c71bdcded5b336c87f1b246b@epcas1p2.samsung.com>
2016-09-19 7:44 ` [PATCH] PM / devfreq: rk3399_dmc: Remove explictly regulator_put call in .remove MyungJoo Ham
2016-09-19 11:08 ` Rafael J. Wysocki
[not found] <CGME20160918024126epcas1p16b581f05e978e0e2014bb20a47e82aec@epcas1p1.samsung.com>
2016-09-18 2:41 ` Axel Lin
2016-09-19 0:16 ` Chanwoo Choi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).