From patchwork Fri Aug 16 10:54:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 820883 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 A889F13B783 for ; Fri, 16 Aug 2024 10:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723805689; cv=none; b=hmyD8ScWiT8JtuznUV5Tal7EbN2qHSmE2YOu4cV/qpW9BxgQCFoSZvxNt8w4Hy6AFGdPbdHp1Dzy7ml+YJNdjJCa5Kp/7Ff7u2jJt7QkK1ibjuL2HwQyJI15DitVuow+msATLth1g6cZBoRLtw0xOzFML+40yH5el8gJv28VYqk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723805689; c=relaxed/simple; bh=2UwlDFsvx0FENZTR3WL94gVz3cLqUmxrINSyGxA/NxI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=K9Z8NJ8QDmCqwLrqP8MQjAs+2dMhK06G8nJ9qr9AQKdGvIG8uPNNyRnKEvOdYy7AbdocU//ARe1v9NiyvFaq/RXfM096KHsQpZI9Qe4cLuaCY5FoMt17UeO7M4sCrCyHhjI/bAOzNbdxxfG9P6UFWVQatxKFlnzDknm0W4rmRCM= 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=XJP8UUWA; arc=none smtp.client-ip=209.85.221.47 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="XJP8UUWA" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-3687ea0521cso1172373f8f.1 for ; Fri, 16 Aug 2024 03:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723805685; x=1724410485; 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=tYPp0NsTOxhLjR9Ww3ZqtUjI7/iF6gTBv/X0BXKx08s=; b=XJP8UUWADXaoLUikqjPKxwzSixzW0SAsfSdjKvhHP2dfpEVEqR65+JuibPbvBEItMv MssnsJ0w0P8GHKScKffjLz1kNl4zzbvjd37e7AriViwjhI66r6f6L0Om3QE2wchajpT6 i/ArypEYMFXl25aT8od47qaj174bm4x7DRdnT0lOGVoLFeVt4jGnkqcLELM8CcRBX+9g OwBuJILJl7/IAQk/gDBm5EKbb37Eajy/B1nkNKyGv9qugZWeo0fj2nB89wzN1UbEFN8E eKRerl0k8daXqtN+zj3TRyuMuFk5Y1GOYq36MUwbiL0bXIXWuJATWRpkd00DGGXpacwM OGBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723805685; x=1724410485; 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=tYPp0NsTOxhLjR9Ww3ZqtUjI7/iF6gTBv/X0BXKx08s=; b=OGq8JFN9nOKAIV1QYECUiGRV7kDyVhNHjTYkMwviI9mDiw4OASCghrjLf4FxujG0jr 7W9nOlzEw+ncjHbdSazHgNORoRfrdZ4v8GSJXNXBUhclT1NnoSirzJpb4T2Cv81VKseb QXRukhC5KRrNx/RniTP2SX/aFsOGEZqdDdSkmiFGcYbZ5BmJLURsGZOenLXJo54gpyl6 jnaYJLkGKJ0ehWs1BvACiESkJbCkieh1cEGuPruL+HqN5Eur+OkR9HOXZFOIKP//cIJT TaI5bueqCBn9p7LOb6CvfAwkcveqeI5zLR1oawLSB1CNLGeObFJNP1mXLkFqyfdj9PzX LRgg== X-Forwarded-Encrypted: i=1; AJvYcCWBL2CEmYAJvRGFuX/axbaz3YigIko3YPYIJxp1CazCa0ayCgw2X33j/h7Ll/h7sAafiVEc1AHS+VlpbdRAw9iff5r72MZTuRCxW/vDUHb1G/c= X-Gm-Message-State: AOJu0YwUKlLJFWl58DdMign6FtupuBtsJ8SeF0HuTE3eTrtHzx1Jr6xm UMlyGuonAY/zi20X3sxGuRMjsr6/Q8QPqqE5JHqFuvyuec+mFuysJl7Pq0h5x/E= X-Google-Smtp-Source: AGHT+IHHvawl5XEfEGL+I6Vq39YTQapEbBWFGCGvUkRJ46B0XFDy0y8IVU67kRwXPNSR2rjsEPylrA== X-Received: by 2002:a5d:5592:0:b0:368:4910:8f43 with SMTP id ffacd0b85a97d-3719431561emr1605829f8f.3.1723805684861; Fri, 16 Aug 2024 03:54:44 -0700 (PDT) Received: from [127.0.1.1] ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ed7945cesm19461935e9.40.2024.08.16.03.54.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 03:54:44 -0700 (PDT) From: Krzysztof Kozlowski Subject: [PATCH v2 00/13] memory: simplify with scoped/cleanup.h for device nodes Date: Fri, 16 Aug 2024 12:54:24 +0200 Message-Id: <20240816-cleanup-h-of-node-put-memory-v2-0-9eed0ee16b78@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=H4sIAOAvv2YC/42NQQ6CMBBFr0Jm7Zi2SgVX3sOwqHQKk0BLWiAaw t2tnMDle/l5f4NEkSnBvdgg0sqJg8+gTgW0vfEdIdvMoIS6ikoqbAcyfpmwx+DQB0s4LTOONIb 4QWu1JfmqVS1vkBNTJMfvI/9sMvec5rw73lb5s3+GV4kCS6FLU7mLllY9BvYmhnOIHTT7vn8Bt jdD6skAAAA= 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 , Jonathan Cameron X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2028; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=2UwlDFsvx0FENZTR3WL94gVz3cLqUmxrINSyGxA/NxI=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmvy/kBBEqhpXjMi8XcGTKE6afT4vE1o4FulDg7 ujMEz51mUOJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZr8v5AAKCRDBN2bmhouD 13OgD/9Lao5pfe/Gv4e/sGD9rnGL0Qq9TO3361aYYrL3qW/oHUal1cCVeioK8fpPY1cjlnPkrJP wPr86G2hVX9eXMeCqkVR/btO/AMLqD1UyoZm96Chr/n4wDstwJSYlpOiMBugsFQS9wjpQmyRtRG JhJCc5TZMVUbkDQIHdnf63dXnACBKmZbQ0vf05z37T4TUbS2fhVizHcfdVCPvmpi81KqfpZ+Brk 0pjnfQP3/AwPwCJvAnCK+Ww8w7RhqwblPscpq4FkzILrIAsmQpkWQe9XaVbXfoIICXo2HqU6FvB 8vgDjAhIfJGX2aSLx2V//vwwUr46mxv52jfT9/wp3WA8ROHttQXJpuMkJZ0cmvvwytm6omt/wAQ iqqMA4+fBetSJlZCmQo03dNlCFpOZzHNQ0io/S8I0ATFF7UsZfmquheffuxHVmrq2fzUHYU/U94 i55XKETUwW84kNWHIlVWiRzSUuO1Ixve62gmEGn8R2TESeXG+/gsIzijXhl3+fyEMLm+Qlo9zlA xMxPsl/vBLEZD3TBbi87+gtmwS+zujDEuOKeQk3iKabX3qi0NZIVHNQaup7oRNiyp07B7VbkHxm 8lJsfKFWWVvzZwV0f91GuFjn+dsdhK7eHcYDFUlVQDFL5dNhgRo51OKT4/HvzmBPYgvPb6ny3m4 LUM1YTR6ADFfZAA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Changes in v2: - Add tags - Wrap lines before of_parse_phandle() (Jonathan) - Few new patches (see individual changelogs) - Link to v1: https://lore.kernel.org/r/20240812-cleanup-h-of-node-put-memory-v1-0-5065a8f361d2@linaro.org Make code a bit simpler and smaller by using cleanup.h when handling device nodes. Best regards, Krzysztof --- Krzysztof Kozlowski (13): 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: simplify dmc->dev usage 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: stm32-fmc2-ebi: simplify with dev_err_probe() 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 dev_err_probe() memory: ti-aemif: simplify with devm_clk_get_enabled() memory: ti-aemif: simplify with scoped for each OF child loop drivers/memory/atmel-ebi.c | 35 +++++-------- drivers/memory/samsung/exynos5422-dmc.c | 90 +++++++++++++++------------------ drivers/memory/stm32-fmc2-ebi.c | 23 +++------ 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 | 48 +++++------------- 8 files changed, 80 insertions(+), 148 deletions(-) --- base-commit: cf4d89333014d387065aa296160aaec5cec04cc5 change-id: 20240812-cleanup-h-of-node-put-memory-dd6de1b92917 Best regards,