lkml.org 
[lkml]   [2013]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 02/20] regulator: ab8500: use devm_regulator_register()
Date
On Wednesday, September 25, 2013 7:21 PM, Sachin Kamat wrote:
> On 25 September 2013 13:21, Jingoo Han <jg1.han@samsung.com> wrote:
> > Use devm_regulator_register() to make cleanup paths simpler.
>
> > - for (i = 0; i < abx500_regulator.info_size; i++) {
> > - struct ab8500_regulator_info *info = NULL;
> > - info = &abx500_regulator.info[i];
> > -
> > - dev_vdbg(rdev_get_dev(info->regulator),
> > - "%s-remove\n", info->desc.name);
> > -
> > - regulator_unregister(info->regulator);
> > - }
> > + int err;
> >
> > /* remove regulator debug */
> > err = ab8500_regulator_debug_exit(pdev);
>
> Wouldn't re-ordering (unregistering after ab8500_regulator_debug_exit)
> cause any problems here ?
>

OK, I see.
There is no ab8500_regulator_debug_exit() in the current kernel.
However, in my opinion, ab8500_regulator_debug_exit() should be
called, after regulator_unregister() is called.

I will remove this patch from next V2 patch series.
Thank you.

Bengt Jonsson,
If I am wrong, please let me know kindly. :-)

Best regards,
Jingoo Han



\
 
 \ /
  Last update: 2013-09-26 04:01    [W:0.062 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site