public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: Hannu Heikkinen <hannuxx@iki.fi>
Cc: rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org,
	a.zummo@towertech.it
Subject: Re: [PATCH] rtc: tegra: cleanup probe/remove routines
Date: Fri, 13 Apr 2012 11:01:12 -0600	[thread overview]
Message-ID: <4F885BD8.1030201@wwwdotorg.org> (raw)
In-Reply-To: <1334238054-31600-1-git-send-email-hannuxx@iki.fi>

On 04/12/2012 07:40 AM, Hannu Heikkinen wrote:
> From: Hannu Heikkinen <ext-hannu.m.heikkinen@nokia.com>
> 
> Use the devres managed resource functions in the probe routine.
> Affects also in remove routine where 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 freed
> automatically on driver detach.
> 
> Signed-off-by: Hannu Heikkinen <ext-hannu.m.heikkinen@nokia.com>

Acked-by: Stephen Warren <swarren@wwwdotorg.org>

      parent reply	other threads:[~2012-04-13 17:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12 13:40 [PATCH] rtc: tegra: cleanup probe/remove routines Hannu Heikkinen
2012-04-13  5:35 ` Venu Byravarasu
2012-04-13 12:54   ` Hannu Heikkinen
2012-04-16  3:21     ` Venu Byravarasu
2012-04-13 17:01 ` Stephen Warren [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F885BD8.1030201@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --cc=a.zummo@towertech.it \
    --cc=hannuxx@iki.fi \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rtc-linux@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox