Re: [PATCH 4/5] vfio: platform: Convert to use devm_*()

2017-04-06 Thread Leo Yan
On Sun, Apr 02, 2017 at 04:45:28PM +0200, Auger Eric wrote: > Hi Leo, > > On 26/03/2017 16:41, Leo Yan wrote: > > Convert driver to use devm_*() APIs so rely on driver model core layer > > to manage resources. This eliminates error path boilerplate and makes > > code neat. > > > > This patch also

Re: [PATCH 4/5] vfio: platform: Convert to use devm_*()

2017-04-02 Thread Auger Eric
Hi Leo, On 26/03/2017 16:41, Leo Yan wrote: > Convert driver to use devm_*() APIs so rely on driver model core layer > to manage resources. This eliminates error path boilerplate and makes > code neat. > > This patch also renames amba_id structure, the old code used some code > which directly cop

[PATCH 4/5] vfio: platform: Convert to use devm_*()

2017-03-26 Thread Leo Yan
Convert driver to use devm_*() APIs so rely on driver model core layer to manage resources. This eliminates error path boilerplate and makes code neat. This patch also renames amba_id structure, the old code used some code which directly copied from other driver. Signed-off-by: Leo Yan --- driv