Skip to content

Commit 36d301f

Browse files
mszyprowchanwoochoi
authored andcommitted
extcon: max77693: add device-tree compatible string
Commit 57f706b ("ARM: dts: samsung: exynos4412-midas: add USB connector and USB OTG") added a 'muic' node to the MAX77693 PMIC definition in various device-tree files. Since that commit, the newly created MFD cell gained its own of_node and compatible string. This changed its modalias, what in turn broke automated loading of the driver module, because the new modalias is based on the of_node compatible string, not the platform device name. Fix this by adding the needed device-tree compatible string. Link: https://lore.kernel.org/all/20231006100434.2908243-1-m.szyprowski@samsung.com/ Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent a1e932c commit 36d301f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/extcon/extcon-max77693.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,9 +1258,16 @@ static int max77693_muic_probe(struct platform_device *pdev)
12581258
return ret;
12591259
}
12601260

1261+
static const struct of_device_id of_max77693_muic_dt_match[] = {
1262+
{ .compatible = "maxim,max77693-muic", },
1263+
{ /* sentinel */ },
1264+
};
1265+
MODULE_DEVICE_TABLE(of, of_max77693_muic_dt_match);
1266+
12611267
static struct platform_driver max77693_muic_driver = {
12621268
.driver = {
12631269
.name = DEV_NAME,
1270+
.of_match_table = of_max77693_muic_dt_match,
12641271
},
12651272
.probe = max77693_muic_probe,
12661273
};

0 commit comments

Comments
 (0)