From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 133FA22EF5 for ; Sun, 4 Feb 2024 16:49:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707065391; cv=none; b=oAFmtVB6A5Bv9MWQJhZDVbocLrm7PWkaWXs1cfwwqqfgwV5X369NQd72x3bjviWydg7Qxt2IOJY5bN/qp6RKjlCcdBG7cDtAyc0SJrc+sfgzmXrekWIYFeRUpi+s2GdH53eFOsiQXRcAfEzuPokA6jcDF7c9jwWWtZ2xoLs+10w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707065391; c=relaxed/simple; bh=ivjqsBI8+Zba2eGIulS9WoHh0xcvu95m4Jk4tFjIyQM=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mjbZ8Vd/H7VZMe1957iOCXrknRqmylr1RUBYHyTJdVwR8EDPcxViH/IC+nbgtKTDJ85OXBRnCOksXD1bRBgsFEDfRb05bd+02eq22jrr+mW7EN8MG377u0Kl+bM60gswzer3kZnX/P4K/ExSWwZPJEu1ksIhnkh5ffI4F19P6p0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-30.elisa-laajakaista.fi [88.113.26.30]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id 66ab6094-c37d-11ee-b3cf-005056bd6ce9; Sun, 04 Feb 2024 18:49:48 +0200 (EET) From: andy.shevchenko@gmail.com Date: Sun, 4 Feb 2024 18:49:45 +0200 To: Nikita Shubin Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Christophe Kerello , Chris Packham , Daniel Golle , Neil Armstrong , Johan Jonker , Arnd Bergmann , Linus Walleij , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH v7 20/39] mtd: rawnand: add support for ts72xx Message-ID: References: <20240118-ep93xx-v7-0-d953846ae771@maquefel.me> <20240118-ep93xx-v7-20-d953846ae771@maquefel.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240118-ep93xx-v7-20-d953846ae771@maquefel.me> Thu, Jan 18, 2024 at 11:21:03AM +0300, Nikita Shubin kirjoitti: > Technologic Systems has it's own nand controller implementation in CPLD. ... > +err_clean_nand: > + nand_cleanup(&data->chip); > +err_handle_put: > + fwnode_handle_put(child); > + return err; > +} > + > +static void ts72xx_nand_remove(struct platform_device *pdev) > +{ > + struct ts72xx_nand_data *data = platform_get_drvdata(pdev); > + struct nand_chip *chip = &data->chip; > + int ret; > + > + ret = mtd_device_unregister(nand_to_mtd(chip)); > + WARN_ON(ret); > + nand_cleanup(chip); Missing fwnode_handle_put()? > +} -- With Best Regards, Andy Shevchenko