Skip to content

Commit c60f680

Browse files
krzkjernejsk
authored andcommitted
clk: sunxi-ng: fix module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Clocks are considered core components, so usually they are built-in, however these can be built and used as modules on some generic kernel. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://lore.kernel.org/r/20240410155420.224157-1-krzk@kernel.org Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
1 parent 52b1429 commit c60f680

23 files changed

+23
-0
lines changed

drivers/clk/sunxi-ng/ccu-sun20i-d1-r.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ static const struct of_device_id sun20i_d1_r_ccu_ids[] = {
125125
{ .compatible = "allwinner,sun20i-d1-r-ccu" },
126126
{ }
127127
};
128+
MODULE_DEVICE_TABLE(of, sun20i_d1_r_ccu_ids);
128129

129130
static struct platform_driver sun20i_d1_r_ccu_driver = {
130131
.probe = sun20i_d1_r_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun20i-d1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,6 +1394,7 @@ static const struct of_device_id sun20i_d1_ccu_ids[] = {
13941394
{ .compatible = "allwinner,sun20i-d1-ccu" },
13951395
{ }
13961396
};
1397+
MODULE_DEVICE_TABLE(of, sun20i_d1_ccu_ids);
13971398

13981399
static struct platform_driver sun20i_d1_ccu_driver = {
13991400
.probe = sun20i_d1_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun4i-a10.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,7 @@ static const struct of_device_id sun4i_a10_ccu_ids[] = {
14811481
},
14821482
{ }
14831483
};
1484+
MODULE_DEVICE_TABLE(of, sun4i_a10_ccu_ids);
14841485

14851486
static struct platform_driver sun4i_a10_ccu_driver = {
14861487
.probe = sun4i_a10_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun50i-a100-r.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ static const struct of_device_id sun50i_a100_r_ccu_ids[] = {
202202
{ .compatible = "allwinner,sun50i-a100-r-ccu" },
203203
{ }
204204
};
205+
MODULE_DEVICE_TABLE(of, sun50i_a100_r_ccu_ids);
205206

206207
static struct platform_driver sun50i_a100_r_ccu_driver = {
207208
.probe = sun50i_a100_r_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun50i-a100.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,7 @@ static const struct of_device_id sun50i_a100_ccu_ids[] = {
12641264
{ .compatible = "allwinner,sun50i-a100-ccu" },
12651265
{ }
12661266
};
1267+
MODULE_DEVICE_TABLE(of, sun50i_a100_ccu_ids);
12671268

12681269
static struct platform_driver sun50i_a100_ccu_driver = {
12691270
.probe = sun50i_a100_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun50i-a64.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,7 @@ static const struct of_device_id sun50i_a64_ccu_ids[] = {
980980
{ .compatible = "allwinner,sun50i-a64-ccu" },
981981
{ }
982982
};
983+
MODULE_DEVICE_TABLE(of, sun50i_a64_ccu_ids);
983984

984985
static struct platform_driver sun50i_a64_ccu_driver = {
985986
.probe = sun50i_a64_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ static const struct of_device_id sun50i_h6_r_ccu_ids[] = {
244244
},
245245
{ }
246246
};
247+
MODULE_DEVICE_TABLE(of, sun50i_h6_r_ccu_ids);
247248

248249
static struct platform_driver sun50i_h6_r_ccu_driver = {
249250
.probe = sun50i_h6_r_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun50i-h6.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,7 @@ static const struct of_device_id sun50i_h6_ccu_ids[] = {
12591259
{ .compatible = "allwinner,sun50i-h6-ccu" },
12601260
{ }
12611261
};
1262+
MODULE_DEVICE_TABLE(of, sun50i_h6_ccu_ids);
12621263

12631264
static struct platform_driver sun50i_h6_ccu_driver = {
12641265
.probe = sun50i_h6_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun50i-h616.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,7 @@ static const struct of_device_id sun50i_h616_ccu_ids[] = {
11541154
{ .compatible = "allwinner,sun50i-h616-ccu" },
11551155
{ }
11561156
};
1157+
MODULE_DEVICE_TABLE(of, sun50i_h616_ccu_ids);
11571158

11581159
static struct platform_driver sun50i_h616_ccu_driver = {
11591160
.probe = sun50i_h616_ccu_probe,

drivers/clk/sunxi-ng/ccu-sun6i-a31.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,7 @@ static const struct of_device_id sun6i_a31_ccu_ids[] = {
12711271
{ .compatible = "allwinner,sun6i-a31-ccu" },
12721272
{ }
12731273
};
1274+
MODULE_DEVICE_TABLE(of, sun6i_a31_ccu_ids);
12741275

12751276
static struct platform_driver sun6i_a31_ccu_driver = {
12761277
.probe = sun6i_a31_ccu_probe,

0 commit comments

Comments
 (0)