Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1967335rdb; Sun, 4 Feb 2024 08:49:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQQC5Fv4kjAipE3M386lqMQlo3ya3m/dzXb+FXh6PmFMp+1QRru+7k6RpYxUwN05F0RdV/ X-Received: by 2002:a05:6808:1292:b0:3be:24d2:6d74 with SMTP id a18-20020a056808129200b003be24d26d74mr16318659oiw.38.1707065398489; Sun, 04 Feb 2024 08:49:58 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUjz8zNh+tkIpfTTPGoBFWI4Au2Y27kNtgGaQx7LDEheQj9BW7CjJtQgXs68ckwDUzXxcTvhZd+cDQ3XTgqksYulqjvwHZofi85FQTzNw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d9-20020ac85d89000000b0042c0c3c908fsi4239400qtx.192.2024.02.04.08.49.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 08:49:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-51799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51799-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 254121C21207 for ; Sun, 4 Feb 2024 16:49:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C2EB23750; Sun, 4 Feb 2024 16:49:52 +0000 (UTC) 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