pinctrl: broxton: Replace MODULE_ALIAS() with MODULE_DEVICE_TABLE()
Subsystems (3)
PATCH 1/1 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.
--- drivers/pinctrl/intel/pinctrl-broxton.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/pinctrl/intel/pinctrl-broxton.c +1 -2
@@ -998,6 +998,7 @@ static const struct platform_device_id bxt_pinctrl_platform_ids[] = { { "broxton-pinctrl", (kernel_ulong_t)bxt_pinctrl_soc_data }, { } }; +MODULE_DEVICE_TABLE (platform, bxt_pinctrl_platform_ids);static INTEL_PINCTRL_PM_OPS (bxt_pinctrl_pm_ops);
@@ -1026,6 +1027,4 @@ module_exit(bxt_pinctrl_exit);MODULE_AUTHOR ("Mika Westerberg <[email protected]>" );MODULE_DESCRIPTION ("Intel Broxton SoC pinctrl/GPIO driver" );MODULE_LICENSE ("GPL v2" ); -MODULE_ALIAS ("platform:apollolake-pinctrl" ); -MODULE_ALIAS ("platform:broxton-pinctrl" );MODULE_IMPORT_NS (PINCTRL_INTEL );
Signature · 1 line
2.40.0.1.gaa8946217a0b
Quoted 7 lines · Andy Shevchenko
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]>Signed-off-by Andy Shevchenko <[email protected]>---
Best regards,
Krzysztof
Quoted 6 lines · Krzysztof Kozlowski
Quoted 3 lines · Andy Shevchenko
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.Reviewed-by Krzysztof Kozlowski <[email protected]>
Pushed to my review and testing queue, thanks!
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 6 lines · Andy Shevchenko
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]>Signed-off-by Andy Shevchenko <[email protected]>