From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from down.free-electrons.com ([37.187.137.238] helo=mail.free-electrons.com) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a8XId-0002Nk-LA for linux-mtd@lists.infradead.org; Mon, 14 Dec 2015 17:52:40 +0000 Date: Mon, 14 Dec 2015 18:52:17 +0100 From: Boris Brezillon To: Brian Norris Cc: David Woodhouse , linux-mtd@lists.infradead.org, linux-wireless@vger.kernel.org, =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH] mtd: nand: bcm47xxnflash: fix bcm47xxnflash_remove() Message-ID: <20151214185217.395e9dde@bbrezillon> In-Reply-To: <20151214173011.GA15605@localhost> References: <1450113250-12036-1-git-send-email-boris.brezillon@free-electrons.com> <20151214173011.GA15605@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Brian, On Mon, 14 Dec 2015 09:30:11 -0800 Brian Norris wrote: > On Mon, Dec 14, 2015 at 06:14:10PM +0100, Boris Brezillon wrote: > > bcm47xxnflash_remove() is supposed to unregister the NAND device previo= usly > > registered in bcm47xxnflash_probe(), but the current implementation just > > test for the always NULL ->mtd platform data field (and does not call t= he > > right function to unregister it). > >=20 > > Kill the useless ->mtd field in struct bcma_nflash, and release the real > > NAND device in bcm47xxnflash_remove(). > >=20 > > Signed-off-by: Boris Brezillon > > Fixes: a5401370c520 ("mtd: prepare place for BCMA NAND flash driver(s)") > > Cc: Rafa=C5=82 Mi=C5=82ecki > > --- > > drivers/mtd/nand/bcm47xxnflash/main.c | 7 ++++--- > > include/linux/bcma/bcma_driver_chipcommon.h | 4 ---- > > 2 files changed, 4 insertions(+), 7 deletions(-) >=20 > Hmm, looks awfully similar... >=20 > http://patchwork.ozlabs.org/patch/554164/ My bad, I completely overlooked it, even though I was in Cc of this patch. I acked it, could you apply it before my series so that I can can adjust the bcma patch? Best Regards, Boris --=20 Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com