Skip to content

Commit

Permalink
extcon: max77693: add device-tree compatible string
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Szyprowski authored and Chanwoo Choi committed Oct 6, 2023
1 parent a1e932c commit 36d301f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/extcon/extcon-max77693.c
Original file line number Diff line number Diff line change
Expand Up @@ -1258,9 +1258,16 @@ static int max77693_muic_probe(struct platform_device *pdev)
return ret;
}

static const struct of_device_id of_max77693_muic_dt_match[] = {
{ .compatible = "maxim,max77693-muic", },
{ /* sentinel */ },
};
MODULE_DEVICE_TABLE(of, of_max77693_muic_dt_match);

static struct platform_driver max77693_muic_driver = {
.driver = {
.name = DEV_NAME,
.of_match_table = of_max77693_muic_dt_match,
},
.probe = max77693_muic_probe,
};
Expand Down

0 comments on commit 36d301f

Please sign in to comment.