Commit b363a459 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Krzysztof Kozlowski

clk: samsung: exynos-clkout: Remove misleading of_match_table/MODULE_DEVICE_TABLE

Since commit 9484f2cb ("clk: samsung: exynos-clkout: convert to
module driver") this driver is instantiated as MFD-cell (matched by
platform device name) not as a real platform device created by OF code.
Remove then of_match_table and change related MODULE_DEVICE_TABLE to
simple MODULE_ALIAS to avoid further confusion.
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: default avatarWill McVicker <willmcvicker@google.com>
Link: https://lore.kernel.org/r/20240510070653.537089-1-m.szyprowski@samsung.comSigned-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent 1613e604
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/pm.h> #include <linux/pm.h>
#define DRV_NAME "exynos-clkout"
#define EXYNOS_CLKOUT_NR_CLKS 1 #define EXYNOS_CLKOUT_NR_CLKS 1
#define EXYNOS_CLKOUT_PARENTS 32 #define EXYNOS_CLKOUT_PARENTS 32
...@@ -75,7 +77,6 @@ static const struct of_device_id exynos_clkout_ids[] = { ...@@ -75,7 +77,6 @@ static const struct of_device_id exynos_clkout_ids[] = {
.data = &exynos_clkout_exynos5, .data = &exynos_clkout_exynos5,
}, { } }, { }
}; };
MODULE_DEVICE_TABLE(of, exynos_clkout_ids);
/* /*
* Device will be instantiated as child of PMU device without its own * Device will be instantiated as child of PMU device without its own
...@@ -236,8 +237,7 @@ static SIMPLE_DEV_PM_OPS(exynos_clkout_pm_ops, exynos_clkout_suspend, ...@@ -236,8 +237,7 @@ static SIMPLE_DEV_PM_OPS(exynos_clkout_pm_ops, exynos_clkout_suspend,
static struct platform_driver exynos_clkout_driver = { static struct platform_driver exynos_clkout_driver = {
.driver = { .driver = {
.name = "exynos-clkout", .name = DRV_NAME,
.of_match_table = exynos_clkout_ids,
.pm = &exynos_clkout_pm_ops, .pm = &exynos_clkout_pm_ops,
}, },
.probe = exynos_clkout_probe, .probe = exynos_clkout_probe,
...@@ -248,4 +248,5 @@ module_platform_driver(exynos_clkout_driver); ...@@ -248,4 +248,5 @@ module_platform_driver(exynos_clkout_driver);
MODULE_AUTHOR("Krzysztof Kozlowski <krzk@kernel.org>"); MODULE_AUTHOR("Krzysztof Kozlowski <krzk@kernel.org>");
MODULE_AUTHOR("Tomasz Figa <tomasz.figa@gmail.com>"); MODULE_AUTHOR("Tomasz Figa <tomasz.figa@gmail.com>");
MODULE_DESCRIPTION("Samsung Exynos clock output driver"); MODULE_DESCRIPTION("Samsung Exynos clock output driver");
MODULE_ALIAS("platform:" DRV_NAME);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment