Skip to content

Commit a9d7dfa

Browse files
committed
pinctrl: broxton: Replace MODULE_ALIAS() with MODULE_DEVICE_TABLE()
As Krzysztof pointed out the better is to use MODULE_DEVICE_TABLE() as it will be consistent with the content of the real ID table of the platform devices. Suggested-by: Krzysztof Kozlowski <[email protected]> Acked-by: Mika Westerberg <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent f2bbe6f commit a9d7dfa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/pinctrl/intel/pinctrl-broxton.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,7 @@ static const struct platform_device_id bxt_pinctrl_platform_ids[] = {
998998
{ "broxton-pinctrl", (kernel_ulong_t)bxt_pinctrl_soc_data },
999999
{ }
10001000
};
1001+
MODULE_DEVICE_TABLE(platform, bxt_pinctrl_platform_ids);
10011002

10021003
static INTEL_PINCTRL_PM_OPS(bxt_pinctrl_pm_ops);
10031004

@@ -1026,6 +1027,4 @@ module_exit(bxt_pinctrl_exit);
10261027
MODULE_AUTHOR("Mika Westerberg <[email protected]>");
10271028
MODULE_DESCRIPTION("Intel Broxton SoC pinctrl/GPIO driver");
10281029
MODULE_LICENSE("GPL v2");
1029-
MODULE_ALIAS("platform:apollolake-pinctrl");
1030-
MODULE_ALIAS("platform:broxton-pinctrl");
10311030
MODULE_IMPORT_NS(PINCTRL_INTEL);

0 commit comments

Comments
 (0)