By convention MODULE_DEVICE_TABLE() immediately follows the ID table it
exports, because this is easier to read and verify. It also makes more
sense since #ifdef for ACPI or OF could hide both of them.
Most of the privers already have this correctly placed, so adjust
the missing ones. No functional impact.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260505102803.183455-3-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
{ .compatible = "nvidia,tegra20-ac97", },
{},
};
+MODULE_DEVICE_TABLE(of, tegra20_ac97_of_match);
static struct platform_driver tegra20_ac97_driver = {
.driver = {
MODULE_DESCRIPTION("Tegra20 AC97 ASoC driver");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:" DRV_NAME);
-MODULE_DEVICE_TABLE(of, tegra20_ac97_of_match);
{ .compatible = "nvidia,tegra20-das", },
{},
};
+MODULE_DEVICE_TABLE(of, tegra20_das_of_match);
static struct platform_driver tegra20_das_driver = {
.probe = tegra20_das_probe,
MODULE_DESCRIPTION("Tegra20 DAS driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" DRV_NAME);
-MODULE_DEVICE_TABLE(of, tegra20_das_of_match);
{ .compatible = "nvidia,tegra20-i2s", },
{},
};
+MODULE_DEVICE_TABLE(of, tegra20_i2s_of_match);
static const struct dev_pm_ops tegra20_i2s_pm_ops = {
RUNTIME_PM_OPS(tegra20_i2s_runtime_suspend,
MODULE_DESCRIPTION("Tegra20 I2S ASoC driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" DRV_NAME);
-MODULE_DEVICE_TABLE(of, tegra20_i2s_of_match);
{ .compatible = "nvidia,tegra30-ahub", .data = &soc_data_tegra30 },
{},
};
+MODULE_DEVICE_TABLE(of, tegra30_ahub_of_match);
static int tegra30_ahub_probe(struct platform_device *pdev)
{
MODULE_DESCRIPTION("Tegra30 AHUB driver");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:" DRV_NAME);
-MODULE_DEVICE_TABLE(of, tegra30_ahub_of_match);
{ .compatible = "nvidia,tegra30-i2s", .data = &tegra30_i2s_config },
{},
};
+MODULE_DEVICE_TABLE(of, tegra30_i2s_of_match);
static int tegra30_i2s_platform_probe(struct platform_device *pdev)
{
MODULE_DESCRIPTION("Tegra30 I2S ASoC driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" DRV_NAME);
-MODULE_DEVICE_TABLE(of, tegra30_i2s_of_match);