Re: [PATCH] rtc: davinci: clean up probe/remove routines

2012-10-14 Thread Sekhar Nori
On 10/14/2012 3:43 AM, Hannu Heikkinen wrote: > Use the devres managed resource functions in the probe routine. > Also affects the remove routine where the previously used free and > release functions are not needed. > > The devm_* functions eliminate the need for manual resource releasing and > s

[PATCH] rtc: davinci: clean up probe/remove routines

2012-10-13 Thread Hannu Heikkinen
Use the devres managed resource functions in the probe routine. Also affects the remove routine where the previously used free and release functions are not needed. The devm_* functions eliminate the need for manual resource releasing and simplify error handling. Resources allocated by devm_* are