pwm: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:28 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:28 +0000 (16:21 +0200)
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
19 files changed:
drivers/pwm/pwm-ab8500.c
drivers/pwm/pwm-atmel-tcb.c
drivers/pwm/pwm-bfin.c
drivers/pwm/pwm-clps711x.c
drivers/pwm/pwm-imx.c
drivers/pwm/pwm-jz4740.c
drivers/pwm/pwm-lp3943.c
drivers/pwm/pwm-lpc32xx.c
drivers/pwm/pwm-mxs.c
drivers/pwm/pwm-puv3.c
drivers/pwm/pwm-pxa.c
drivers/pwm/pwm-renesas-tpu.c
drivers/pwm/pwm-samsung.c
drivers/pwm/pwm-spear.c
drivers/pwm/pwm-tegra.c
drivers/pwm/pwm-tiecap.c
drivers/pwm/pwm-tiehrpwm.c
drivers/pwm/pwm-tipwmss.c
drivers/pwm/pwm-vt8500.c

index 4c07a8420b373ddd4322e013a18b1fc7a5902f93..f39399273426c9b729787778423a61da9884c8df 100644 (file)
@@ -131,7 +131,6 @@ static int ab8500_pwm_remove(struct platform_device *pdev)
 static struct platform_driver ab8500_pwm_driver = {
        .driver = {
                .name = "ab8500-pwm",
-               .owner = THIS_MODULE,
        },
        .probe = ab8500_pwm_probe,
        .remove = ab8500_pwm_remove,
index d56e5b7174313761698290a90d8646f1d5d600aa..d14e0677c92ddacb6838f8cb1d7f269fc2937b7e 100644 (file)
@@ -436,7 +436,6 @@ MODULE_DEVICE_TABLE(of, atmel_tcb_pwm_dt_ids);
 static struct platform_driver atmel_tcb_pwm_driver = {
        .driver = {
                .name = "atmel-tcb-pwm",
-               .owner = THIS_MODULE,
                .of_match_table = atmel_tcb_pwm_dt_ids,
        },
        .probe = atmel_tcb_pwm_probe,
index 9985d830e554856dd8e96eb9667da4ad64923793..7631ef194de7dc80ba28b98da9b340e519ac5095 100644 (file)
@@ -149,7 +149,6 @@ static int bfin_pwm_remove(struct platform_device *pdev)
 static struct platform_driver bfin_pwm_driver = {
        .driver = {
                .name = "bfin-pwm",
-               .owner = THIS_MODULE,
        },
        .probe = bfin_pwm_probe,
        .remove = bfin_pwm_remove,
index fafb6a0111b05cde14041b69873c626e6592a56c..a80c10803636adbd24d79865ee2a1207df90cd5a 100644 (file)
@@ -163,7 +163,6 @@ MODULE_DEVICE_TABLE(of, clps711x_pwm_dt_ids);
 static struct platform_driver clps711x_pwm_driver = {
        .driver = {
                .name = "clps711x-pwm",
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(clps711x_pwm_dt_ids),
        },
        .probe = clps711x_pwm_probe,
index 5449d9150d40d245fdd2380ca291ca53aa2b0b31..11af7b4403f8795fd41a7957923b05744aeb7e41 100644 (file)
@@ -295,7 +295,6 @@ static int imx_pwm_remove(struct platform_device *pdev)
 static struct platform_driver imx_pwm_driver = {
        .driver         = {
                .name   = "imx-pwm",
-               .owner = THIS_MODULE,
                .of_match_table = imx_pwm_dt_ids,
        },
        .probe          = imx_pwm_probe,
index 9c46209e1d02aae6845bfe8d4dad5a153c36b07d..76d13150283f61636bbc3a4b68d6280af130f5e0 100644 (file)
@@ -194,7 +194,6 @@ static int jz4740_pwm_remove(struct platform_device *pdev)
 static struct platform_driver jz4740_pwm_driver = {
        .driver = {
                .name = "jz4740-pwm",
-               .owner = THIS_MODULE,
        },
        .probe = jz4740_pwm_probe,
        .remove = jz4740_pwm_remove,
index 2c39b0e50fa4a3eab0b48a6db8ddfdf3c7318e49..872ea76a4f1904059972e3430e2650171be9bb9e 100644 (file)
@@ -305,7 +305,6 @@ static struct platform_driver lp3943_pwm_driver = {
        .remove = lp3943_pwm_remove,
        .driver = {
                .name = "lp3943-pwm",
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(lp3943_pwm_of_match),
        },
 };
index 9dc0f9d42bfa3a44807c8f2b3917ad27c3f8f437..9fde60ce8e7bf2d5932caa74564a93a6b638ceb6 100644 (file)
@@ -168,7 +168,6 @@ MODULE_DEVICE_TABLE(of, lpc32xx_pwm_dt_ids);
 static struct platform_driver lpc32xx_pwm_driver = {
        .driver = {
                .name = "lpc32xx-pwm",
-               .owner = THIS_MODULE,
                .of_match_table = lpc32xx_pwm_dt_ids,
        },
        .probe = lpc32xx_pwm_probe,
index 4f1bb4e0a426ee5dee75d5cd91d1ae93d5bc3a2c..f75ecb09d97de3e9a80e7b0fac46f2369fc288b7 100644 (file)
@@ -189,7 +189,6 @@ MODULE_DEVICE_TABLE(of, mxs_pwm_dt_ids);
 static struct platform_driver mxs_pwm_driver = {
        .driver = {
                .name = "mxs-pwm",
-               .owner = THIS_MODULE,
                .of_match_table = mxs_pwm_dt_ids,
        },
        .probe = mxs_pwm_probe,
index a9a28083f245ca2f5efa8be46c6b3b79690170db..ed6007b27585a9512d5c2470248343b3e80882d4 100644 (file)
@@ -146,7 +146,6 @@ static int pwm_remove(struct platform_device *pdev)
 static struct platform_driver puv3_pwm_driver = {
        .driver = {
                .name = "PKUnity-v3-PWM",
-               .owner = THIS_MODULE,
        },
        .probe = pwm_probe,
        .remove = pwm_remove,
index 0b312ec420b6920b34cf3cb236a0f20c16c3f502..cb2f7024cf6846350dd2ac83846e8d0a7b26ee02 100644 (file)
@@ -225,7 +225,6 @@ static int pwm_remove(struct platform_device *pdev)
 static struct platform_driver pwm_driver = {
        .driver         = {
                .name   = "pxa25x-pwm",
-               .owner  = THIS_MODULE,
                .of_match_table = pwm_of_match,
        },
        .probe          = pwm_probe,
index 3b71b42e89d505cf5120f87d173f7e78f05e6550..ee63f9e9d0fb752833f5dd596a8c3838d4e93cdb 100644 (file)
@@ -468,7 +468,6 @@ static struct platform_driver tpu_driver = {
        .remove         = tpu_remove,
        .driver         = {
                .name   = "renesas-tpu-pwm",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(tpu_of_table),
        }
 };
index ba6b650cf8dc166cf529e067b3b4844691e0cfd1..3e9b5835a4af80c6a4e510e93f9f79934b96a1b4 100644 (file)
@@ -601,7 +601,6 @@ static SIMPLE_DEV_PM_OPS(pwm_samsung_pm_ops, pwm_samsung_suspend,
 static struct platform_driver pwm_samsung_driver = {
        .driver         = {
                .name   = "samsung-pwm",
-               .owner  = THIS_MODULE,
                .pm     = &pwm_samsung_pm_ops,
                .of_match_table = of_match_ptr(samsung_pwm_matches),
        },
index 6fd93e6a4122b0a6e021b60cf8ca792e5054d889..6c6b44fd3f438f58ad1de57e850fc601776ca8e5 100644 (file)
@@ -252,7 +252,6 @@ MODULE_DEVICE_TABLE(of, spear_pwm_of_match);
 static struct platform_driver spear_pwm_driver = {
        .driver = {
                .name = "spear-pwm",
-               .owner = THIS_MODULE,
                .of_match_table = spear_pwm_of_match,
        },
        .probe = spear_pwm_probe,
index 61d86b9498caa8bb381dbe274e1c0c6e65ee755b..5b97cae5423a0fead0b3f944c6d7ee933f58459e 100644 (file)
@@ -237,7 +237,6 @@ MODULE_DEVICE_TABLE(of, tegra_pwm_of_match);
 static struct platform_driver tegra_pwm_driver = {
        .driver = {
                .name = "tegra-pwm",
-               .owner = THIS_MODULE,
                .of_match_table = tegra_pwm_of_match,
        },
        .probe = tegra_pwm_probe,
index 74efbe7f20c3ab084939421dcafa40b108baee95..e557befdf4e65902c0c87a513bdb6dd479be5177 100644 (file)
@@ -331,7 +331,6 @@ static SIMPLE_DEV_PM_OPS(ecap_pwm_pm_ops, ecap_pwm_suspend, ecap_pwm_resume);
 static struct platform_driver ecap_pwm_driver = {
        .driver = {
                .name   = "ecap",
-               .owner  = THIS_MODULE,
                .of_match_table = ecap_of_match,
                .pm     = &ecap_pwm_pm_ops,
        },
index cb75133085a8b9b0adaa71a3374645520a0023c6..694b3cf7694be1bc14543d1ff1173a0486d2a4e2 100644 (file)
@@ -599,7 +599,6 @@ static SIMPLE_DEV_PM_OPS(ehrpwm_pwm_pm_ops, ehrpwm_pwm_suspend,
 static struct platform_driver ehrpwm_pwm_driver = {
        .driver = {
                .name   = "ehrpwm",
-               .owner  = THIS_MODULE,
                .of_match_table = ehrpwm_of_match,
                .pm     = &ehrpwm_pwm_pm_ops,
        },
index 67481dc6da3f7e2de068f106a37937b30fe23eda..5cf65a15d02191b3b8400713133470d5bcc303f8 100644 (file)
@@ -119,7 +119,6 @@ static SIMPLE_DEV_PM_OPS(pwmss_pm_ops, pwmss_suspend, pwmss_resume);
 static struct platform_driver pwmss_driver = {
        .driver = {
                .name   = "pwmss",
-               .owner  = THIS_MODULE,
                .pm     = &pwmss_pm_ops,
                .of_match_table = pwmss_of_match,
        },
index 652e6b5b859b92d6cdd2585506e9e24a7528f35b..cdb58fd4619d21e2225b171ffdad2de55641d653 100644 (file)
@@ -266,7 +266,6 @@ static struct platform_driver vt8500_pwm_driver = {
        .remove         = vt8500_pwm_remove,
        .driver         = {
                .name   = "vt8500-pwm",
-               .owner  = THIS_MODULE,
                .of_match_table = vt8500_pwm_dt_ids,
        },
 };