* [PATCH] mfd: mt6360: Add name field to the driver
@ 2020-06-08 9:58 matthias.bgg
0 siblings, 0 replies; only message in thread
From: matthias.bgg @ 2020-06-08 9:58 UTC (permalink / raw)
To: lee.jones, gene.chen.richtek
Cc: matthias.bgg, linux-arm-kernel, linux-mediatek, linux-kernel,
Matthias Brugger, kernel test robot
From: Matthias Brugger <mbrugger@suse.com>
The driver does not have a name, this will lead to a NULL pointer
deref when we try to register the driver to a bus.
Fixes: 7edd363421da ("mfd: Add support for PMIC MT6360")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
---
drivers/mfd/mt6360-core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mfd/mt6360-core.c b/drivers/mfd/mt6360-core.c
index db8cdf5272c1..dc2987dab649 100644
--- a/drivers/mfd/mt6360-core.c
+++ b/drivers/mfd/mt6360-core.c
@@ -412,6 +412,7 @@ MODULE_DEVICE_TABLE(of, mt6360_pmu_of_id);
static struct i2c_driver mt6360_pmu_driver = {
.driver = {
+ .name = "MT6360",
.pm = &mt6360_pmu_pm_ops,
.of_match_table = of_match_ptr(mt6360_pmu_of_id),
},
--
2.26.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-08 9:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08 9:58 [PATCH] mfd: mt6360: Add name field to the driver matthias.bgg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).