From patchwork Mon Aug 12 13:33:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13760603 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AB03FC3DA7F for ; Mon, 12 Aug 2024 13:39:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=hQ9EsAfNWCNGsBTp/zuUJbg/d9ugsX/M8WUijMQTUKU=; b=tNvjr9ecQayU4i BlyLJQeBGOgJGE/+weRsCEfJqAEwlLFMZQTTtLACMWK3Rrg7MUprN1WKY7ye2KsyPF0v6NwEa3VXL C2QkOR0r3FzEkdMHX37js7eWdFBb/Cln5NWLF5vMBEnexdadMD3CwUAQ44qQ2J1ePbTJbCtp/Dvsz QfTjrntA78YjXwhUcaaXyGY8u4gj1D14T35qeRIsid68okPxc22R/FFwKNtd+4OlQ8HyBUCmrn5XA avyR0GC/irw3F2T5CJq0KA+UTnhAH8+2dvlnSkBEv6oTrSVVwtRHFGytd9QpbgmtCDalM8ujNjySN WPqF1YX2l7HGa8gnse7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdVGv-00000000S16-3RIX; Mon, 12 Aug 2024 13:39:41 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdVBl-00000000R4X-1v7Y for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2024 13:34:55 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-42819654737so32807515e9.1 for ; Mon, 12 Aug 2024 06:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723469659; x=1724074459; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=hQ9EsAfNWCNGsBTp/zuUJbg/d9ugsX/M8WUijMQTUKU=; b=BmVH2MxmQ9tq6onAnJQvxM4YO3Yc7GZ80g0Q+aeeFue3aDdDrQcOaeG+Zerb7rYJRL BJimMGFGYYarE/QOjKgZ3L/GZr6y9BJp0oh2E7YEybzzb9wYd/UD7A0/WNdCYMsdqqiy pj/KR4loJITaKtcmhHPAuTUKJLNfO11Nv689kpzKPMW0aAHnL0ZZ3d//iwQ+VPAWeeQk ZXFVkJpMT5F31AxB/ycBdZcyl75lh9lyCd+gg8pzjTYJoKWx+FTaTFREVN1Ifaqw7aNb hV+/rPtyirAIYOpGuTSo0LQzQh8sjZyIuX6PPmE/m4dPRM2G2jRsUsteG93fq/q00NPt lWzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723469659; x=1724074459; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hQ9EsAfNWCNGsBTp/zuUJbg/d9ugsX/M8WUijMQTUKU=; b=VcTZbwiZgRT5VdCR8ywOy5AE8/g7dH29Xxxi5QRoIIa/hDImtFxidwiaEzddnZkv8o VnuAjxCfQG8ji6GzCxkX4xIpLxeOY1WdPt/EIP9DSvnEjx89RIhyzOJMWkcn8kQgX+I0 PMjwXIaF0adPem6qnKZGPBEn4Q2fbi9kZyGnsRAmVnB2c8mdsD3bgOdFGkxRIok3+Zkw fIFVfcc+0LMe5l3lQLEaEd7JOrO+/ILa08LCCq8bcgmQieATKz2uHPNF8OeLUXAoX6UH 4YL+KV1Egon8JjKwU09jTC1KEdk8l4UbfYBG4YTvGUnvBnjFV9LSXoRxI+lxopuMwV0z glxQ== X-Forwarded-Encrypted: i=1; AJvYcCUHJtmjChJb2JfnOfIL8DkJlIjJUe5iNhmmxOXB6cVcUm2EsonqGpanoHUM3aXx1ysvCN4kiXIXg9XqCUGrnx2SwaRvWJhEAJIIAYXURB07R3ehQO4= X-Gm-Message-State: AOJu0YyYVrpndQxCoDUEGMCukdQxL6tY7TVP8hyy1ta9j42pMhHc2t+R LJXEXo76kyX+0Xoozkyb8PLzvG44T8BW/t3yI7adDZ7GDLoPtYku+6G6q1ouNvs= X-Google-Smtp-Source: AGHT+IE1KeUxZr45wg8GO4bkox3rQPd8HA1lfti7444qmFnozdlwHtMIevcYiwqGJFzIO6QVhDVBxg== X-Received: by 2002:a05:600c:4584:b0:426:6379:3b4f with SMTP id 5b1f17b1804b1-429d4893818mr3637485e9.31.1723469659100; Mon, 12 Aug 2024 06:34:19 -0700 (PDT) Received: from [127.0.1.1] ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429c7737c64sm102733975e9.31.2024.08.12.06.34.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Aug 2024 06:34:18 -0700 (PDT) From: Krzysztof Kozlowski Subject: [PATCH 0/9] memory: simplify with scoped/cleanup.h for device nodes Date: Mon, 12 Aug 2024 15:33:54 +0200 Message-Id: <20240812-cleanup-h-of-node-put-memory-v1-0-5065a8f361d2@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEIPumYC/x3MQQqDMBAF0KvIrDtggtjqVaQLdb51oCYh0VIR7 25w+TbvoISoSNQWB0X8NKl3GeZR0Dj37gNWySZb2qp8GcvjF73bAs/sJ3ZewGFbecHi484itcA MjW3Mk3IRIib93333Ps8Lb52N/24AAAA= To: Krzysztof Kozlowski , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Lukasz Luba , Alim Akhtar , Maxime Coquelin , Alexandre Torgue , Thierry Reding , Jonathan Hunter , Santosh Shilimkar Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-tegra@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1576; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=H8kaYJ2UVmG5D5geD0TuiFhX+chgtcGynCXf+srDSxY=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmug9Og7Sl9/SIc/9Vq1Ixg2W4m32wK6q+8y6zQ qEYeFt7MrWJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZroPTgAKCRDBN2bmhouD 102+D/9BLrZ01YnrGcAHBZt6bd8l0wpghqUDKqb9lER9jW5q0eqdTUBYaEZqhXWLrhZz04wW8V5 2PvdATezI856kVuXZ1VeKecXXA08oXa/3aDd74af9fkb29HcPi9nI8siB8e3pvF3JmpJ6CEsvdW HYxvlI6TDyB+SbKbBwCHcNa4y5nRFoOGL95+dqqyLOA7c+G4GfT3UOjHLgHLWVJn/AV58Al3ich Mskup0lPkDu8E+E9knsiT79x9k3yInyo3RdLYJUvcogoSo0kUTvc/EgkcE3ZlfZ2MngHqI/xS4m N+4HpTRy6fTKNzfFC4ZfjfMxDG1/0cEUoHQbkg9FTRhQ9gfnoASVNByBYrK/x9IL7t0ephvaZzX xNec+GhbAUCJrt5QJ+nhnbUm2vvy7Cpp25r1rQdHd79LOz26GrAt+BuAyn7tWl/nYeXhE4B0/g1 cu0KLmKDs5LnZZEeNOn9kCMMAiFXcg/Qto8KT/LgVMJfFHsYp5qwHOdsVs3YPEPsLLKg2JUj4iB KLxYPUjJ2YYp7kNh47gDwIi0ffiHZlW+tv74fd6NdwJgC9J2W20sQZlwbqAM+Sno19sJ/N8jHsJ NS67XppXifcWhqGsVg7elPMvkGNQ85Pc4GM1kI0Kv47VZ+0RfbiFlrd4R0lRHelSBcTp1CHLZ6k 3tWtClDb4DnY3oA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240812_063421_535828_87A48EA0 X-CRM114-Status: UNSURE ( 8.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Make code a bit simpler and smaller by using cleanup.h when handling device nodes. Best regards, Krzysztof --- Krzysztof Kozlowski (9): memory: atmel-ebi: use scoped device node handling to simplify error paths memory: atmel-ebi: simplify with scoped for each OF child loop memory: samsung: exynos5422-dmc: use scoped device node handling to simplify error paths memory: stm32-fmc2-ebi: simplify with scoped for each OF child loop memory: tegra-mc: simplify with scoped for each OF child loop memory: tegra124-emc: simplify with scoped for each OF child loop memory: tegra20-emc: simplify with scoped for each OF child loop memory: tegra30-emc: simplify with scoped for each OF child loop memory: ti-aemif: simplify with scoped for each OF child loop drivers/memory/atmel-ebi.c | 35 +++++++++++---------------------- drivers/memory/samsung/exynos5422-dmc.c | 31 +++++++++++------------------ drivers/memory/stm32-fmc2-ebi.c | 8 +------- drivers/memory/tegra/mc.c | 11 +++-------- drivers/memory/tegra/tegra124-emc.c | 7 ++----- drivers/memory/tegra/tegra20-emc.c | 7 ++----- drivers/memory/tegra/tegra30-emc.c | 7 ++----- drivers/memory/ti-aemif.c | 13 ++++-------- 8 files changed, 37 insertions(+), 82 deletions(-) --- base-commit: cf4d89333014d387065aa296160aaec5cec04cc5 change-id: 20240812-cleanup-h-of-node-put-memory-dd6de1b92917 Best regards,