Skip to content

Commit d42005c

Browse files
krzklinusw
authored andcommitted
pinctrl: mediatek: fix module autoloading
Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded based on the alias from of_device_id table. Pin controllers are considered core components, so usually they are built-in, however these can be built and used as modules on some generic kernel. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Message-ID: <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent a310822 commit d42005c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/pinctrl/mediatek/pinctrl-mt6765.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,7 @@ static const struct of_device_id mt6765_pinctrl_of_match[] = {
10861086
{ .compatible = "mediatek,mt6765-pinctrl", .data = &mt6765_data },
10871087
{ }
10881088
};
1089+
MODULE_DEVICE_TABLE(of, mt6765_pinctrl_of_match);
10891090

10901091
static struct platform_driver mt6765_pinctrl_driver = {
10911092
.driver = {

drivers/pinctrl/mediatek/pinctrl-mt6779.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ static const struct of_device_id mt6779_pinctrl_of_match[] = {
762762
{ .compatible = "mediatek,mt6779-pinctrl", .data = &mt6779_data },
763763
{ }
764764
};
765+
MODULE_DEVICE_TABLE(of, mt6779_pinctrl_of_match);
765766

766767
static struct platform_driver mt6779_pinctrl_driver = {
767768
.driver = {

0 commit comments

Comments
 (0)