pinctrl: broxton: Replace MODULE_ALIAS() with MODULE_DEVICE_TABLE()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 5 Oct 2023 13:39:49 +0000 (16:39 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 6 Oct 2023 08:23:10 +0000 (11:23 +0300)
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 <krzk@kernel.org>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pinctrl/intel/pinctrl-broxton.c

index 4d5ddb2979098b61315d5202258fcc98c814bc5f..3118c7c8842fe1e2191627ba8c2c955d4049a3fe 100644 (file)
@@ -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 <mika.westerberg@linux.intel.com>");
 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);