Skip to content

Commit 9d2df36

Browse files
krzklinusw
authored andcommitted
pinctrl: realtek: 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]> Message-ID: <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent abda461 commit 9d2df36

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/pinctrl/realtek/pinctrl-rtd1315e.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,7 @@ static const struct of_device_id rtd1315e_pinctrl_of_match[] = {
14141414
{ .compatible = "realtek,rtd1315e-pinctrl", },
14151415
{},
14161416
};
1417+
MODULE_DEVICE_TABLE(of, rtd1315e_pinctrl_of_match);
14171418

14181419
static struct platform_driver rtd1315e_pinctrl_driver = {
14191420
.driver = {

drivers/pinctrl/realtek/pinctrl-rtd1319d.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,6 +1584,7 @@ static const struct of_device_id rtd1319d_pinctrl_of_match[] = {
15841584
{ .compatible = "realtek,rtd1319d-pinctrl", },
15851585
{},
15861586
};
1587+
MODULE_DEVICE_TABLE(of, rtd1319d_pinctrl_of_match);
15871588

15881589
static struct platform_driver rtd1319d_pinctrl_driver = {
15891590
.driver = {

0 commit comments

Comments
 (0)