Skip to contentSkip to conversation

mfd: mt6360: Add name field to the driver

PATCH New [email protected] 1 participant 1 message Jun 8, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: mt6360: Add name field to the driver

From: Matthias Brugger <[email protected]>

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")
---
 drivers/mfd/mt6360-core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mfd/mt6360-core.c +1 -0
index db8cdf5272c1..dc2987dab649 100644
@@ -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),
 	},
Signature · 1 line
2.26.2