b483dd243b94b3cfdc0a680036041488b1831802
[openwrt/staging/xback.git] /
1 From 21833338eccb91194fec6ba7548d9c454824eca0 Mon Sep 17 00:00:00 2001
2 From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
3 Date: Tue, 30 Apr 2024 09:49:12 +0100
4 Subject: [PATCH] nvmem: layouts: onie-tlv: drop driver owner initialization
5
6 Core in nvmem_layout_driver_register() already sets the .owner, so
7 driver does not need to.
8
9 Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
10 Reviewed-by: Michael Walle <mwalle@kernel.org>
11 Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
12 Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
13 Link: https://lore.kernel.org/r/20240430084921.33387-3-srinivas.kandagatla@linaro.org
14 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 ---
16 drivers/nvmem/layouts/onie-tlv.c | 1 -
17 1 file changed, 1 deletion(-)
18
19 --- a/drivers/nvmem/layouts/onie-tlv.c
20 +++ b/drivers/nvmem/layouts/onie-tlv.c
21 @@ -247,7 +247,6 @@ MODULE_DEVICE_TABLE(of, onie_tlv_of_matc
22
23 static struct nvmem_layout_driver onie_tlv_layout = {
24 .driver = {
25 - .owner = THIS_MODULE,
26 .name = "onie-tlv-layout",
27 .of_match_table = onie_tlv_of_match_table,
28 },