From nobody Wed Feb 11 23:51:05 2026 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 0153750A72 for ; Fri, 29 Mar 2024 16:13:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711728829; cv=none; b=qATwKJ0hMVAA8x+TUFjYDMAcKzuNffyzsbIgvLt98XUUTAwCx10xXfpkg7DwF8Qqx+jd8Gv5sKH/KC5pfHPY/dwYlvFsJro+KtE9fMXu4gcr7lA+3K9lMR6ySBx2CdfiJV120BdulbAiyGd+AevMSW2LqsU7R7jfjtwFwwlOGdo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711728829; c=relaxed/simple; bh=xKnlZub8/eLYJI2vzunTToUncXuCG4OEL1Cd4/mpZFc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=N9ruDd2PhzDtFtEqMFDrl6wx04p1H/a7T9du0cwcfQ/fOtevnDUIrLFC+NFzsPl2yYGSfMSwwm8hsNwf04M2Jgywb1EwOrFgtTQk8jVUblbhWjgvEZhTwO3N/8AKVf3g5x6yTVlQFl7DPdBBk1aNFJ7w8v9uVM/UzzLmXY1AV/o= 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=QfzgP/S/; arc=none smtp.client-ip=209.85.128.52 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="QfzgP/S/" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4148c5de23fso14577335e9.1 for ; Fri, 29 Mar 2024 09:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711728826; x=1712333626; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CflbPnJBfIFWRetJNdeSOg0H8c9h0tnwdQ9Sgj5VAjk=; b=QfzgP/S/gK/K/ofJ00+3A+4CC5IlNtbw+RLVJD467isi+ioy/gRPIm7NUGM2uO7F/n jjTTUdQNoZAVwTotliTk+jYslbHtJZ7Dizvzjbc10ijkeTKs3ooDFax/d5sWFfMp2N49 kzSnDIlcnlOCvD+aeWTqK6REdKFEyrNj6j4TFYIoQs/hSXxISS8XET8rbS1HrvOgg72Y vc+AHWuO4Ic9WjBn09TTdQgiqqHv00fJQwb6RRV5fkbOQI+vUptAeopAlpGIV6dapRwE bw2Ci/weqLy6ouLZzZD4yeSYQ4/Reld3IENaYNxgF/8rGqBmdjucp9KmX7O+3a14n+Jo dazw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711728826; x=1712333626; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CflbPnJBfIFWRetJNdeSOg0H8c9h0tnwdQ9Sgj5VAjk=; b=Ym1WyE+eq12Apj5tqBIwh3EStMGSGheuN6QvcrM2VOYmWuckL5e1YiXtzPra8hOdhs 6FFr6YqRr/IA2aHIyBeKjCe65bFyKjLeAuo7bnnzzHbzstHhez3MUaLxj5T9TzXo256E 3a8H9fGZc0Yfjw2660+3/J5jxx7YlZG2ajvYk7CaBAXOPKR/wRn88VxKGPuKQZqlAXhp osWFyXUQvMQNFe0V2ftz5fGLZSj8Ahskjwkh6NgXj3NuacpkoXpgjDxG9kcLM/eO4jU0 CfSf+tlSjF+J56KWhGCVW90cs/AFG2ENgjqfaqrZU3WpNW3ukqW2l0UPtngz44CfpBgy vf9w== X-Gm-Message-State: AOJu0YxwNt09uEYmxMprhJWhbxfNHaRNDzI9jRv7TX79ZOeOuo8Cv1Q4 xA4BKRf60GgbsXjt+idUa4U6KoNVK1dpBied1PpZPFBKk9s3QNKL7W4lkG32gus= X-Google-Smtp-Source: AGHT+IFnagdAH2ofucKH6gCveAbM6xu0YsqiloWKrp+NA8eW73wn8lfVBsSRweH1HZ+wLzaVc9u3ig== X-Received: by 2002:a05:600c:4509:b0:414:7e73:1f5b with SMTP id t9-20020a05600c450900b004147e731f5bmr2026077wmo.4.1711728826426; Fri, 29 Mar 2024 09:13:46 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id s6-20020a05600c45c600b004155568fa99sm214878wmo.36.2024.03.29.09.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 09:13:45 -0700 (PDT) From: Krzysztof Kozlowski Date: Fri, 29 Mar 2024 17:13:35 +0100 Subject: [PATCH 1/3] nvmem: layouts: store owner from modules with nvmem_layout_driver_register() 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240329-module-owner-nvmem-v1-1-d700685f08e1@linaro.org> References: <20240329-module-owner-nvmem-v1-0-d700685f08e1@linaro.org> In-Reply-To: <20240329-module-owner-nvmem-v1-0-d700685f08e1@linaro.org> To: Srinivas Kandagatla , Miquel Raynal , Michael Walle Cc: linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2316; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=xKnlZub8/eLYJI2vzunTToUncXuCG4OEL1Cd4/mpZFc=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmBui0RCykLRErGn5WDY86JIhegIPR2tSNkBn3Y yAgWZlPpFGJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZgbotAAKCRDBN2bmhouD 172AD/0cCsqNwX+hhrx4LDT25yG4uTR0GlXIz10l7jqz9FdR7f+ZeLkrIVzTaKgLkLgNcqKcEiO U/i078oicU+jsCsR2ffVhsjrLcn7J7x+eistZkTp4grA5CPoipuY1tuZvop6pswYGGogDumhJuZ NnOs8Cg22tRxpdxMR3Ju7NJ20SmB09jD7rXEQaXhKFo/tREmfGHROvfJZbeCbfqElU2wjaT6lW2 4Fstx11254+7C93EDRkYxunV3OUjOQ7fA8B/7mvAg70X6UIIzc7zA/ZemS5ssshRXScw3gSEicW EuHnx2buU8aK2wMfcmvTrkShpaxYxvijgzxOa1ZZahYwgrbPBGNTXaSmw5J8FiQfkTqvzA50Q2Z D9oAjfVWKVNB9ea7vtUgTGvhKM19vU6Wom93adYlxneWWKYD5M4ImkcWd7BYKj5WvL3sxMn3om0 Kuk9k8eR0heTdhzpj3hzkTrctt0Ege9LIJr2R2mGQh9El5FINktR4vZa/8DraeVQdjPH7twsUo0 g+yNJVmgrJ4+3JmkW0FyaIrIGxvOnFUHfs1oAyjbeL7EsKRXcf1AYnQYFCc3oX9jSa8v70dDC+0 eZ5B++G9AlaLXWgFuo+RdkUDCdYn6RpCbVkiGxQXb+gP4rOPkkYK776xoqghRYV02dfdAHhqscU HEehWZEnhWbOmog== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Modules registering driver with nvmem_layout_driver_register() might forget to set .owner field. The field is used by some of other kernel parts for reference counting (try_module_get()), so it is expected that drivers will set it. Solve the problem by moving this task away from the drivers to the core code, just like we did for platform_driver in commit 9447057eaff8 ("platform_device: use a macro instead of platform_driver_register"). Signed-off-by: Krzysztof Kozlowski Reviewed-by: Michael Walle Reviewed-by: Miquel Raynal --- drivers/nvmem/layouts.c | 6 ++++-- include/linux/nvmem-provider.h | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/nvmem/layouts.c b/drivers/nvmem/layouts.c index 8b5e2de138eb..64dc7013a098 100644 --- a/drivers/nvmem/layouts.c +++ b/drivers/nvmem/layouts.c @@ -52,13 +52,15 @@ static const struct bus_type nvmem_layout_bus_type =3D { .remove =3D nvmem_layout_bus_remove, }; =20 -int nvmem_layout_driver_register(struct nvmem_layout_driver *drv) +int __nvmem_layout_driver_register(struct nvmem_layout_driver *drv, + struct module *owner) { drv->driver.bus =3D &nvmem_layout_bus_type; + drv->driver.owner =3D owner; =20 return driver_register(&drv->driver); } -EXPORT_SYMBOL_GPL(nvmem_layout_driver_register); +EXPORT_SYMBOL_GPL(__nvmem_layout_driver_register); =20 void nvmem_layout_driver_unregister(struct nvmem_layout_driver *drv) { diff --git a/include/linux/nvmem-provider.h b/include/linux/nvmem-provider.h index f0ba0e03218f..3ebeaa0ded00 100644 --- a/include/linux/nvmem-provider.h +++ b/include/linux/nvmem-provider.h @@ -199,7 +199,10 @@ int nvmem_add_one_cell(struct nvmem_device *nvmem, int nvmem_layout_register(struct nvmem_layout *layout); void nvmem_layout_unregister(struct nvmem_layout *layout); =20 -int nvmem_layout_driver_register(struct nvmem_layout_driver *drv); +#define nvmem_layout_driver_register(drv) \ + __nvmem_layout_driver_register(drv, THIS_MODULE) +int __nvmem_layout_driver_register(struct nvmem_layout_driver *drv, + struct module *owner); void nvmem_layout_driver_unregister(struct nvmem_layout_driver *drv); #define module_nvmem_layout_driver(__nvmem_layout_driver) \ module_driver(__nvmem_layout_driver, nvmem_layout_driver_register, \ --=20 2.34.1 From nobody Wed Feb 11 23:51:05 2026 Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (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 9DC272904 for ; Fri, 29 Mar 2024 16:13:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711728831; cv=none; b=ayu/FzzJ3Y6mIrXIeCcKGblWMK8fQckXCr1NotRpzrQtpOPpVwh6VQy4gjpDnGZvQuD8xMmmaMFU7DTlfA6JwBOKewGwhkuN19Q+a4JuWDmiFQ2duJvhH7Zlp7OFpNQBxZjeLENjZWjJkOXOTXRhRvJV2bKTdKOJ1O8UPj84nQ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711728831; c=relaxed/simple; bh=z/dwvRYoLCyrENtd52zE1j0oJSexq/EB596omvcXjTY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FqOYzYHBCofXHraKihn+EnwzQE0giiaIa7LEK3O49sxUXZlP1HbXni73MPex45nlaZ23FJ1bRTCo/WSj8IJ10jV4riEQ+3pgjjcjDatzI1eIUpO7t0bJGaJ4npR528qQESdyTDjb7muug2ar7Cb9g+HOXf2Qs1vW84x6gbV8+dM= 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=kCE0b62S; arc=none smtp.client-ip=209.85.208.169 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="kCE0b62S" Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2d46dd5f222so31576831fa.1 for ; Fri, 29 Mar 2024 09:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711728828; x=1712333628; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=c8IvZgLFPwbU0i2ZY4hTepKsdCGAPwe5FM2U52H7EOQ=; b=kCE0b62SUT8mwWKB8k/5JqGOSs84MTnH2ytdPzY1WUOOHA5rWmRiYRjCs8i79gugpb S9rMS+RlKvhBwW5GZASMVlrjyAronRkQncnSJYxOSE+CLE3YMDk5VI0B6e+lETlyZ1rm AP950AThyP4bEY5KcsTQF+FBxPqz6rdFasUL9JgXLQj1BlvLo4XFuF6UgqmFxnpZNZmu IAQ8jF7E6VQRt6Ub/RML1cZWHYsMUoMqK0L2i1xNRlIc8RWj3ewpZ3qOFgEu5knTqmW+ yBu52TfU20+tAMMrKWaOQStdQSFaeQC4dBlUYKk7Wod3Ui+FB7nqINmIBvF1FRDDuU6l KdWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711728828; x=1712333628; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c8IvZgLFPwbU0i2ZY4hTepKsdCGAPwe5FM2U52H7EOQ=; b=vA0IpHSXDc7k+YL2szt2ntIaRQpJ7D6av15c8Fpm/OYmi8EvZq5IjQKuvAUFTRdLh/ WDYj5QYMKwdWcKH9ghp99vTt+RH8utqougx6js3aQMyDbpWdUfK3CypzS3Tb/pvGqWf9 dqPt5RoAM/bROwGtf3SAwUrs981FVUjSFZvJ+EcKWzsjecbCoOCqgeU688ZstxQltzGn 1vmbpTB+eA8mNHo4HgOTS1CtFkXY9lciMwlfGdr2VBxFm9UaHRSZSC19XAFnCCo7mySC RfJR8qvZEjEFjfYOZJzvx/9uDtMyeMuifJWp/SXKTIGENkGq9e5j804v2INZ1qL8zlH+ zC5w== X-Gm-Message-State: AOJu0Yyeutt7CbBexB4NFc7DXRN90rVZm8ldfytkJDfK+06j9jhk/7+c Qw50Cw1CjmYoiz6jUtnq2j1qSIryLkrRsG1UGL4O2f/PXTJuT9jCmQLMrT0MEXD36HK5vvT2r+I o X-Google-Smtp-Source: AGHT+IHli1kpbsUY2DisjZ6yCGvx6TTlOnOKE6J/IggOBtIwM7f/6HEfSDUR5zSJ0SU8Fy8vZ/86cw== X-Received: by 2002:a2e:9b96:0:b0:2d4:7a3:67a7 with SMTP id z22-20020a2e9b96000000b002d407a367a7mr1673985lji.22.1711728827773; Fri, 29 Mar 2024 09:13:47 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id s6-20020a05600c45c600b004155568fa99sm214878wmo.36.2024.03.29.09.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 09:13:47 -0700 (PDT) From: Krzysztof Kozlowski Date: Fri, 29 Mar 2024 17:13:36 +0100 Subject: [PATCH 2/3] nvmem: layouts: onie-tlv: drop driver owner initialization 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240329-module-owner-nvmem-v1-2-d700685f08e1@linaro.org> References: <20240329-module-owner-nvmem-v1-0-d700685f08e1@linaro.org> In-Reply-To: <20240329-module-owner-nvmem-v1-0-d700685f08e1@linaro.org> To: Srinivas Kandagatla , Miquel Raynal , Michael Walle Cc: linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=756; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=z/dwvRYoLCyrENtd52zE1j0oJSexq/EB596omvcXjTY=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmBui118YOed4bZ4H/VJRg6TLj4R4ovL/V/JOj6 csgMKbdvmCJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZgbotQAKCRDBN2bmhouD 12IID/90Rqq2Cg33QNUyjR83bOD/gpuMId1+BEniJ6gRtdu5Bn6eRiVB+CpdnKJhRYEghBGZSiw 7T+Q8RaC9fiLfd5GB4KxCxx6qPMzzkT4wFkoAWHWw4KW3p3rcBde57VFCjHi5dbcwXfsn5X7pcQ 5mXDMTx4Jh4mjaGs07+vkr69c/BfT0OACoV6TdegqZqBWdvfmKYZQubLSgN/kIoGCRv8tuQPDKC i0xCFroMCX8ndFDrDz6IC3DZhsfUEdqmTOfwW2JkeaH8KSnc3VqpI1zhVWo5oNLyrdqiCHH5bJF AxpMDHCrxDN5Ms+eQi/Xvtlfi2mCd7XXkk5VNkA1o4Fhjlf64DR5Fa83nr/8ffJVm4uQg/ZFM7f /MTo+QV6E4bNJ3Jk4FgDmJkKIDBjaI2poPN1IOafrxNbEkI/Po9GXuqgJ3spLo9AE1D8IY75UoL v+XiJZN3wNJFpXNatJpK3mBuaqg4m4cnQXY8RjwaxJbrmUMm/0Ie14sdzYdGF/b3tX6C0t9BhWb 5VzvD8dkjKMqvjm7xvUwAUN6yGI4O+km96+JmWKXjGEBckVRxPWYjh36MQ+HpgDgRi7RpKA+hFF qRZzRSR6xtJ9iWp/YP8/HlZ9TQiZdPmgg8Cul7dYk00sIl3FygzwwcHO4gAC4TftjEMBRPR+yH3 LM+YeSCa4jw74Cg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Core in nvmem_layout_driver_register() already sets the .owner, so driver does not need to. Signed-off-by: Krzysztof Kozlowski Acked-by: Miquel Raynal Reviewed-by: Michael Walle --- Depends on the first patch. --- drivers/nvmem/layouts/onie-tlv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/nvmem/layouts/onie-tlv.c b/drivers/nvmem/layouts/onie-= tlv.c index 9d2ad5f2dc10..0967a32319a2 100644 --- a/drivers/nvmem/layouts/onie-tlv.c +++ b/drivers/nvmem/layouts/onie-tlv.c @@ -247,7 +247,6 @@ MODULE_DEVICE_TABLE(of, onie_tlv_of_match_table); =20 static struct nvmem_layout_driver onie_tlv_layout =3D { .driver =3D { - .owner =3D THIS_MODULE, .name =3D "onie-tlv-layout", .of_match_table =3D onie_tlv_of_match_table, }, --=20 2.34.1 From nobody Wed Feb 11 23:51:05 2026 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 A80C585C58 for ; Fri, 29 Mar 2024 16:13:50 +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=1711728832; cv=none; b=GnSPSw9Tr87FznWS+kxqFPSeoOvL1G3MXHHbZ0Lo8QS1tUMifniC7PDOXtuRyVGHKDdezx1oSVuFrGZ6GmGS8CigV+dIcjzZAzzBDB2Q3IK4kc+vAVpOsMGFc0cal506fyILUNClKnt5vCMHMPOPrJlZ5k58P0Thq0nk2cN5Sm4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711728832; c=relaxed/simple; bh=o4TIacLg5JyvHmGuDwm27DsyHiubmek7OIhnkJO2r1Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hr96WyAzxNfacO/2nkpctVfc1NVG9X0FTfe2KDgl7zGzUlVvL9zcTGbM+6ysM+Oqz633KN16SL4Uj65pJXdnYyk5i86H1OvveYk20izczWR2Xj6U5R/Rgkh6Yo7UztrKgQTX2IhorLuH7xCnHKYFPshoKnNSy0/v0DZ0yKaRYx4= 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=EZtXVMD6; 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="EZtXVMD6" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-41544650225so12403305e9.2 for ; Fri, 29 Mar 2024 09:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711728829; x=1712333629; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=6+8OG4ORmBIFSwhCUR59MKAikt+Qkmsr6f9T+eVhOqw=; b=EZtXVMD6wqGd5yzJVXyj25/vBWybQ1JxCAlC804ArWQfUc+PbmUGeWOAhlIXY0blYZ Afi7NN4VsuPxq6LdevvfQfEjypsafVMYw3UVxHjvxWTrr/DwCoA/bPimJ4rwqSk1E3vJ Wpas4tilGqMBTT6g25AAsdmSdcfwVUxvFf/uY6pomy4WU2PsFQxebfkUZt2XNC+RQ5oY FdiAZqEDCh9xYdYka7zuhjsv70UEmVkFBuXZ1S6x70v52mL1zSN2+JY7xqcTVHpd1qt6 xwR53jMOHhd8vfPppKOrYJMFRz7U/6ILxIZjXdgl1F5QYqD2Tju+eBoXPrper9wg96Gj psSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711728829; x=1712333629; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6+8OG4ORmBIFSwhCUR59MKAikt+Qkmsr6f9T+eVhOqw=; b=IlSk3/cGp+/MUuuXw+mAi5/b7f/BXieRgkDYOkqk9KZNrnwVi699a1BWpihMv6GlMQ Q6Ef2NiqkHZEZpgBHuRl24RkdhF0UxfO/zIDQyWI45F/xhBOGsV6RUBj+VQ+sd6kNV6q 3PMtUaUOBDKDeSug+JOnsgHBXjAd7lGGnRl6GB1Ul9G6tN5ZedU9+XXqPv6QCP59NiXJ 9rNGTCn5mSUIpQl0fEk6nHcSKolUjbJi2MSlmMybZWR/bJVz5m2pxPC/6TUkULxpf/la sUA7UDw7iPCbAHFEEc1pI5TD2ZjOsVE5cMJ4u6KoBr9A2C8OHiHJvyFwzngs1A2qZg0n uQRw== X-Gm-Message-State: AOJu0YyVW2EFKOkCIKpzukyUBmVyX9lTM+SqVkRcCWvj485JOdZoLxMU WVikbVxQXmGWE+tKcPRTrRCHlztk+Jc8CzZc6E3UHJKXweREHZFAlo4Rx4fMN25tTT5QiY0jTYJ d X-Google-Smtp-Source: AGHT+IGMsT8Mw7Ro2aINEXQoDYkPfS0bKMj9nW78ArxXYRRGlDIIpIysSGRs6ZN89hHph7zmyTYgEA== X-Received: by 2002:a05:600c:4710:b0:414:286:fd1f with SMTP id v16-20020a05600c471000b004140286fd1fmr1646594wmo.11.1711728829112; Fri, 29 Mar 2024 09:13:49 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id s6-20020a05600c45c600b004155568fa99sm214878wmo.36.2024.03.29.09.13.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 09:13:48 -0700 (PDT) From: Krzysztof Kozlowski Date: Fri, 29 Mar 2024 17:13:37 +0100 Subject: [PATCH 3/3] nvmem: layouts: sl28vpd: drop driver owner initialization 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240329-module-owner-nvmem-v1-3-d700685f08e1@linaro.org> References: <20240329-module-owner-nvmem-v1-0-d700685f08e1@linaro.org> In-Reply-To: <20240329-module-owner-nvmem-v1-0-d700685f08e1@linaro.org> To: Srinivas Kandagatla , Miquel Raynal , Michael Walle Cc: linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=717; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=o4TIacLg5JyvHmGuDwm27DsyHiubmek7OIhnkJO2r1Q=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmBui2qvJCEqs9MrJhUeBJFExSp8iZ+5UPb/cUK Aqal0UR8xWJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZgbotgAKCRDBN2bmhouD 15FeD/0SmzTcnyuPqL00kn0oedhmq5zcZi0WC7rA2L/qM9YgI17f49XoGpkWumZHEVvEpWBJrKj Lb7b//u3NjBNE/pWUKdQF7nGrclDut1jPgYm7JKmrh41S6v5Xwv8bkdmV+Tn26ks2m36vXgVg1Q JTk3aXRZwZhY1Y/tK9cStCc97121/RsGExPnV5Yckpj0rrVDMv3mkvNyAcbylLaSdoXit9TRGNR XnDC9FGZTVSgKtpExYTxZ4y27gLU7VT/nF9qJBXDmK+rkXW4QI1Gzg+ll1q//0LLQxSy4Zl1Gal uZY8W7zFCVMwIOngXCIKMOp6/n2d+A2IZxqh4ROF4jdCJObrMZLYA+4CH/OOjbcMU5kPZOg8dnG x+XPplIM3ITB+1LLWmK8rUc7qV4hVGzIODlq4W1cvDQPtF1vwa2dmMVh7fazR3E1N5khXQI/hUA Ta3wNeAtcacob5VAX9yGh/R+LOn/tuBubaDVlGFcXsiZOLbgyJELL74lD4hNBqzUQdLEy+UMcei D6i572fUJmDWoSlXPHR9LWSLwYWg24FqGWgeKlivKW7Et7L7D+DhpQ9bG6M/iXZ9EwTQV4K2DUP aGNASwc2uoj9ZLHAfL0CgrqWZQl4CDhmeSj1QoSO0uVjwBEpEi6Izf/U4o+dj/7SLeUNUiNZ3ow /eN33nTDsl20h5A== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Core in nvmem_layout_driver_register() already sets the .owner, so driver does not need to. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Michael Walle Reviewed-by: Miquel Raynal --- drivers/nvmem/layouts/sl28vpd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/nvmem/layouts/sl28vpd.c b/drivers/nvmem/layouts/sl28vp= d.c index 53fa50f17dca..e93b020b0836 100644 --- a/drivers/nvmem/layouts/sl28vpd.c +++ b/drivers/nvmem/layouts/sl28vpd.c @@ -156,7 +156,6 @@ MODULE_DEVICE_TABLE(of, sl28vpd_of_match_table); =20 static struct nvmem_layout_driver sl28vpd_layout =3D { .driver =3D { - .owner =3D THIS_MODULE, .name =3D "kontron-sl28vpd-layout", .of_match_table =3D sl28vpd_of_match_table, }, --=20 2.34.1