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: 13760588 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DFF1B17C7B1 for ; Mon, 12 Aug 2024 13:34:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723469662; cv=none; b=PAAIYQ+avyscx+Tz19vuc2tcX7xK979HOQ+9+Q73Yr3GRCkUasZfbrq21XVgXo9QhNYdwFv3FTDokFuxG7ZsZ74HfZX6oIzxCrq6GGqsL6hyE/XGVt1yqvGoWviH1I39F05cssGui6dXD+lVfiSUXQicIuI82u/bcMTsixaqFTM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723469662; c=relaxed/simple; bh=H8kaYJ2UVmG5D5geD0TuiFhX+chgtcGynCXf+srDSxY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=kX+sInMKu/03p2ij5U51/HOs3w88coMun9ATT54DUV/khcT0N4LJ859tUocc6HBT4hyQ1z6oA+0Xa0qE9134pVr73thVDzgA+oIeAFVl7LeVa+CLkxrBT6nUd22HJ3GFQ8CuLh5kH4hR83QL3gWsq6wxoxmUUvAHlmEjdNfvU1w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=B/RlCLib; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="B/RlCLib" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4280bbdad3dso32914335e9.0 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=vger.kernel.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=B/RlCLiboOa05eYGpMv10D6TmWYyR22SBQSOC2IWMGDOZ2rCPRfYfiFTHKXDhRTa4A wK8ImB5PkIS9QPCP9GMM1iJRJH/TQs8GgqDpXsvqphLZLO8URFhMgmEfE+Y3dLEQMDTY hRxIVugkoOrsn+j0WRUq6ImeC8o70+akTRZUkV8//JcIu0ry8xR1RHcqe7fXoZfWTwRG FR0AsICtzAKe8/Fo/EBGc6yX1plOG06/Woou+Q2G3GsIyjICy9uHnMWRgNl3ojyjpR1D xmJm0GV+dujkuMKiH5Q07A6hpNPQnoEqPC+VCUr7VOx3CR3J34lAuPYgxQR8m5L3Rouy MThg== 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=BvN7NahdDIRsEGWbq0PJO2KXUmWAQJ3GANiU1j93mmxRq1InYqBpTTMCFOL1nOC8Wf PrHl+NcqBrmUBbnGEmIf2vGtLCkejebBHHRhGOD68yglORlx1kCwQ9AsF8IY1W8Wrx1B zO/tf0bFfO0fH6qEFw3HStYGqVgACCgxa7rl8GGAxK2TwhiO7VN5jkYFe0ZjWMI7+zbo O7CdbjkdYIu30BB4Tvl6b7qrAzrpsQtFKp7qA+5CJira/teWes4NhYxwV73bpUAutOOF 98tktPosiBmVKrriVjmFZZOWPVRutVhqKnA1GMFkg+oaNXgZKKSFBx6IdhNhS4AvduGy Q15A== X-Forwarded-Encrypted: i=1; AJvYcCVwlKvXNjMTyU1dtTqb4bLx1HDac0/JZWr7A5pSRkWas7Wv9lFRiegTqtnrmodjZq4L+D0aPHDce6k9qgBRRuN0gJHq4WSyg7aqZ0CZO+j+RHk= X-Gm-Message-State: AOJu0YzKRHrKBzdXW/u2OAVS0RM3HmrJwS7rKp49oZ5dCdXMt/r6FZZI Eyl4HXS9C+vBVa+Ge96Ui07YVgR8lzAyXWPNhu/lPFh6JaYYqoB3vYiXtDiM0cA= 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> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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,