lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200706080944.663750-1-axel.lin@ingics.com>
Date:   Mon,  6 Jul 2020 16:09:44 +0800
From:   Axel Lin <axel.lin@...ics.com>
To:     Mark Brown <broonie@...nel.org>
Cc:     Christoph Fritz <chf.fritz@...glemail.com>,
        Liam Girdwood <lgirdwood@...il.com>,
        linux-kernel@...r.kernel.org, Axel Lin <axel.lin@...ics.com>
Subject: [PATCH] regulator: fan53880: Add missing .owner field in regulator_desc

Add missing .owner field in regulator_desc, which is used for refcounting.

Signed-off-by: Axel Lin <axel.lin@...ics.com>
---
 drivers/regulator/fan53880.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/regulator/fan53880.c b/drivers/regulator/fan53880.c
index 285acc705a55..575d289b8e04 100644
--- a/drivers/regulator/fan53880.c
+++ b/drivers/regulator/fan53880.c
@@ -45,6 +45,7 @@ static const struct regulator_ops fan53880_ops = {
 		.of_match =	   of_match_ptr("LDO"#_num),		\
 		.regulators_node = of_match_ptr("regulators"),		\
 		.type =		   REGULATOR_VOLTAGE,			\
+		.owner =	   THIS_MODULE,				\
 		.linear_ranges =   (struct linear_range[]) {		\
 		      REGULATOR_LINEAR_RANGE(_default, 0x0, 0x0, 0),	\
 		      REGULATOR_LINEAR_RANGE(800000, 0xf, 0x73, 25000),	\
@@ -69,6 +70,7 @@ static const struct regulator_desc fan53880_regulators[] = {
 		.of_match =	   of_match_ptr("BUCK"),
 		.regulators_node = of_match_ptr("regulators"),
 		.type =		   REGULATOR_VOLTAGE,
+		.owner =	   THIS_MODULE,
 		.linear_ranges =   (struct linear_range[]) {
 		      REGULATOR_LINEAR_RANGE(1100000, 0x0, 0x0, 0),
 		      REGULATOR_LINEAR_RANGE(600000, 0x1f, 0xf7, 12500),
@@ -87,6 +89,7 @@ static const struct regulator_desc fan53880_regulators[] = {
 		.of_match =	   of_match_ptr("BOOST"),
 		.regulators_node = of_match_ptr("regulators"),
 		.type =		   REGULATOR_VOLTAGE,
+		.owner =	   THIS_MODULE,
 		.linear_ranges =   (struct linear_range[]) {
 		      REGULATOR_LINEAR_RANGE(5000000, 0x0, 0x0, 0),
 		      REGULATOR_LINEAR_RANGE(3000000, 0x4, 0x70, 25000),
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ