From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cassiel.sirena.org.uk ([80.68.93.111]) by casper.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RsZkF-0003RS-EA for linux-mtd@lists.infradead.org; Wed, 01 Feb 2012 12:57:04 +0000 Date: Wed, 1 Feb 2012 12:56:42 +0000 From: Mark Brown To: Barry Song <21cnbao@gmail.com> Subject: Re: [PATCH 1/3] platform: add common resource requesting and mapping helper Message-ID: <20120201125642.GC13723@sirena.org.uk> References: <1328004002-24646-1-git-send-email-Barry.Song@csr.com> <1328004002-24646-2-git-send-email-Barry.Song@csr.com> <20120131101734.GE2471@pengutronix.de> <20120131113358.GM2471@pengutronix.de> <20120131203455.GG22611@ponder.secretlab.ca> <20120131211554.GA28105@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Erik Gilling , Linus Walleij , Greg Kroah-Hartman , Wolfram Sang , workgroup.linux@csr.com, linux-kernel@vger.kernel.org, Grant Likely , linux-mtd@lists.infradead.org, Barry Song , David Woodhouse , Atsushi Nemoto , Barry Song List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Feb 01, 2012 at 10:11:10AM +0800, Barry Song wrote: > i think it makes sense for us to have platform_devm_request_irq() and > similar things. i'll take care. Note that this one is more tricky than most as it's really important that the interrupt handler can't be called when the data it needs and so on have been freed. With things like memory this really doesn't matter and you can happily free in any order.