Skip to content

Commit

Permalink
clk: Remove .owner field for driver
Browse files Browse the repository at this point in the history
There is no need to init .owner field.

Based on the patch from Peter Griffin <[email protected]>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Kiran Padwal <[email protected]>
Signed-off-by: Mike Turquette <[email protected]>
  • Loading branch information
KiranPadwal authored and Mike Turquette committed Sep 26, 2014
1 parent fa53104 commit 59c0621
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion drivers/clk/clk-axi-clkgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,6 @@ static int axi_clkgen_remove(struct platform_device *pdev)
static struct platform_driver axi_clkgen_driver = {
.driver = {
.name = "adi-axi-clkgen",
.owner = THIS_MODULE,
.of_match_table = axi_clkgen_ids,
},
.probe = axi_clkgen_probe,
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/clk-max77686.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ MODULE_DEVICE_TABLE(platform, max77686_clk_id);
static struct platform_driver max77686_clk_driver = {
.driver = {
.name = "max77686-clk",
.owner = THIS_MODULE,
},
.probe = max77686_clk_probe,
.remove = max77686_clk_remove,
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/clk-max77802.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ MODULE_DEVICE_TABLE(platform, max77802_clk_id);
static struct platform_driver max77802_clk_driver = {
.driver = {
.name = "max77802-clk",
.owner = THIS_MODULE,
},
.probe = max77802_clk_probe,
.remove = max77802_clk_remove,
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/clk-palmas.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ static int palmas_clks_remove(struct platform_device *pdev)
static struct platform_driver palmas_clks_driver = {
.driver = {
.name = "palmas-clk",
.owner = THIS_MODULE,
.of_match_table = palmas_clks_of_match,
},
.probe = palmas_clks_probe,
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/clk-twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ static int twl6040_clk_remove(struct platform_device *pdev)
static struct platform_driver twl6040_clk_driver = {
.driver = {
.name = "twl6040-clk",
.owner = THIS_MODULE,
},
.probe = twl6040_clk_probe,
.remove = twl6040_clk_remove,
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/clk-wm831x.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ static struct platform_driver wm831x_clk_driver = {
.probe = wm831x_clk_probe,
.driver = {
.name = "wm831x-clk",
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/clk/qcom/mmcc-apq8084.c
Original file line number Diff line number Diff line change
Expand Up @@ -3341,7 +3341,6 @@ static struct platform_driver mmcc_apq8084_driver = {
.remove = mmcc_apq8084_remove,
.driver = {
.name = "mmcc-apq8084",
.owner = THIS_MODULE,
.of_match_table = mmcc_apq8084_match_table,
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/qcom/mmcc-msm8960.c
Original file line number Diff line number Diff line change
Expand Up @@ -2679,7 +2679,6 @@ static struct platform_driver mmcc_msm8960_driver = {
.remove = mmcc_msm8960_remove,
.driver = {
.name = "mmcc-msm8960",
.owner = THIS_MODULE,
.of_match_table = mmcc_msm8960_match_table,
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/qcom/mmcc-msm8974.c
Original file line number Diff line number Diff line change
Expand Up @@ -2570,7 +2570,6 @@ static struct platform_driver mmcc_msm8974_driver = {
.remove = mmcc_msm8974_remove,
.driver = {
.name = "mmcc-msm8974",
.owner = THIS_MODULE,
.of_match_table = mmcc_msm8974_match_table,
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/samsung/clk-s3c2410-dclk.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ MODULE_DEVICE_TABLE(platform, s3c24xx_dclk_driver_ids);
static struct platform_driver s3c24xx_dclk_driver = {
.driver = {
.name = "s3c24xx-dclk",
.owner = THIS_MODULE,
.pm = &s3c24xx_dclk_pm_ops,
},
.probe = s3c24xx_dclk_probe,
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/sunxi/clk-sun6i-apb0-gates.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ static int sun6i_a31_apb0_gates_clk_probe(struct platform_device *pdev)
static struct platform_driver sun6i_a31_apb0_gates_clk_driver = {
.driver = {
.name = "sun6i-a31-apb0-gates-clk",
.owner = THIS_MODULE,
.of_match_table = sun6i_a31_apb0_gates_clk_dt_ids,
},
.probe = sun6i_a31_apb0_gates_clk_probe,
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/sunxi/clk-sun6i-apb0.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ static const struct of_device_id sun6i_a31_apb0_clk_dt_ids[] = {
static struct platform_driver sun6i_a31_apb0_clk_driver = {
.driver = {
.name = "sun6i-a31-apb0-clk",
.owner = THIS_MODULE,
.of_match_table = sun6i_a31_apb0_clk_dt_ids,
},
.probe = sun6i_a31_apb0_clk_probe,
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/sunxi/clk-sun6i-ar100.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ static const struct of_device_id sun6i_a31_ar100_clk_dt_ids[] = {
static struct platform_driver sun6i_a31_ar100_clk_driver = {
.driver = {
.name = "sun6i-a31-ar100-clk",
.owner = THIS_MODULE,
.of_match_table = sun6i_a31_ar100_clk_dt_ids,
},
.probe = sun6i_a31_ar100_clk_probe,
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/sunxi/clk-sun8i-apb0.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ static const struct of_device_id sun8i_a23_apb0_clk_dt_ids[] = {
static struct platform_driver sun8i_a23_apb0_clk_driver = {
.driver = {
.name = "sun8i-a23-apb0-clk",
.owner = THIS_MODULE,
.of_match_table = sun8i_a23_apb0_clk_dt_ids,
},
.probe = sun8i_a23_apb0_clk_probe,
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/ti/clk-dra7-atl.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ MODULE_DEVICE_TABLE(of, of_dra7_atl_clk_match_tbl);
static struct platform_driver dra7_atl_clk_driver = {
.driver = {
.name = "dra7-atl",
.owner = THIS_MODULE,
.of_match_table = of_dra7_atl_clk_match_tbl,
},
.probe = of_dra7_atl_clk_probe,
Expand Down

0 comments on commit 59c0621

Please sign in to comment.