From: Herbert Xu Subject: Re: [PATCH v2] hwrng: pasemi_rng.c: Migrate to managed API Date: Wed, 7 Sep 2016 21:22:10 +0800 Message-ID: <20160907132210.GL17176@gondor.apana.org.au> References: <1473012788-6262-1-git-send-email-prasannatsmkumar@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: darren@stevens-zone.net, clabbe.montjoie@gmail.com, linux-crypto@vger.kernel.org, mpm@selenic.com, olof@lixom.net, linuxppc-dev@lists.ozlabs.org To: PrasannaKumar Muralidharan Return-path: Content-Disposition: inline In-Reply-To: <1473012788-6262-1-git-send-email-prasannatsmkumar@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org Sender: "Linuxppc-dev" List-Id: linux-crypto.vger.kernel.org On Sun, Sep 04, 2016 at 11:43:08PM +0530, PrasannaKumar Muralidharan wrote: > Use devm_ioremap and devm_hwrng_register instead of ioremap and > hwrng_register. This removes unregistering and error handling code. > > Changes in v2: > Remove hardcoded resource size in ioremap, use resource struct obtained > by calling platform_get_resource. > > Removing hardcoded resource size was suggested by LABBE Corentin. > > CC: Darren Stevens > > Suggested-by: LABBE Corentin > Signed-off-by: PrasannaKumar Muralidharan Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt