clk: Remove .owner field for driver
authorKiran Padwal <kiran.padwal@smartplayin.com>
Wed, 24 Sep 2014 09:45:29 +0000 (15:15 +0530)
committerMike Turquette <mturquette@linaro.org>
Fri, 26 Sep 2014 00:43:31 +0000 (17:43 -0700)
There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"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 <kiran.padwal@smartplayin.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
15 files changed:
drivers/clk/clk-axi-clkgen.c
drivers/clk/clk-max77686.c
drivers/clk/clk-max77802.c
drivers/clk/clk-palmas.c
drivers/clk/clk-twl6040.c
drivers/clk/clk-wm831x.c
drivers/clk/qcom/mmcc-apq8084.c
drivers/clk/qcom/mmcc-msm8960.c
drivers/clk/qcom/mmcc-msm8974.c
drivers/clk/samsung/clk-s3c2410-dclk.c
drivers/clk/sunxi/clk-sun6i-apb0-gates.c
drivers/clk/sunxi/clk-sun6i-apb0.c
drivers/clk/sunxi/clk-sun6i-ar100.c
drivers/clk/sunxi/clk-sun8i-apb0.c
drivers/clk/ti/clk-dra7-atl.c

index 1127ee46b8024548151b9920246ef286cc887b99..e619285c6defddc731ce4eac34c3b5527bf5e47b 100644 (file)
@@ -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,
index ed0beb4cb39b0db42a6ae3becb8d45bb36eee2f8..86cdb3a28629ab09394292e2b210eb5b689b4504 100644 (file)
@@ -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,
index 8e480c5c294524418212f96a919024e960f6003b..0729dc723a8ff81099bc9e0071a9784f6fd9e4d3 100644 (file)
@@ -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,
index 781630e1372be6151695d7347c4bf439ea58bda7..8d459923a15fd591c782752f79393bb20f4b4da9 100644 (file)
@@ -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,
index 1ada79a2805297aa4b3a6d921b93159bd951a402..4a755135bcd388433696ee4c651a5bbb03302f5b 100644 (file)
@@ -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,
index b131041c8f488f29f4a9f9d5161da119f274245e..ef67719f4e52c23cd977844662e3a202be4963bc 100644 (file)
@@ -395,7 +395,6 @@ static struct platform_driver wm831x_clk_driver = {
        .probe = wm831x_clk_probe,
        .driver         = {
                .name   = "wm831x-clk",
-               .owner  = THIS_MODULE,
        },
 };
 
index 751eea376a2b078a7b8221608a31cf95b92d3a96..dab988ab8cf12740ac931c5f5efaa39b90887ec3 100644 (file)
@@ -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,
        },
 };
index 2e80a219b8ead315a053676f1776c39363f12fda..68da36cd7ed0e1f026b8a80cf047894ff17975ce 100644 (file)
@@ -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,
        },
 };
index bc8f519c47aad0054f675f6595f436f9a1363f6c..be94c54a9a4f72db338c07f260a69da0b706b561 100644 (file)
@@ -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,
        },
 };
index 0449cc0458ed0f8327b1bde2e4270a361be78143..f4f29ed6bd25a4d6d4cd0174738aaa93d6541353 100644 (file)
@@ -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,
index e10d0521ec768532245dc096a03774cb6ae907b4..64f3e46d383cc2ede89889cb7b2d4e9b26d0a22a 100644 (file)
@@ -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,
index 1fa23371c8c6e3fb25fb14de5dc6d8b325392020..70763600aeaeed91e73203fdc9a1e68efc5a97b2 100644 (file)
@@ -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,
index eca8ca025b6aa0f01a2472fba41c5bd811e4a6a1..acca53290be26c8f5c6aea33ee92b7d7f590703d 100644 (file)
@@ -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,
index 1f5ba9b4b8cd085b21fdeb7c6ee48d696de6d34c..155d0022194f2665068b46ed92a0b70cefbca601 100644 (file)
@@ -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,
index af29359677da3ad3e42d75e47bf0dfecc0621249..990e1d9edc01a074d746ab46de149915942ff4e1 100644 (file)
@@ -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,