提交 c756e83d 编写于 作者: W Wolfram Sang

ASoC: codecs: drop owner assignment from platform_drivers

A platform_driver does not need to set an owner, it will be populated by the
driver core.
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 d0052ec3
...@@ -1423,7 +1423,6 @@ static int pm860x_codec_remove(struct platform_device *pdev) ...@@ -1423,7 +1423,6 @@ static int pm860x_codec_remove(struct platform_device *pdev)
static struct platform_driver pm860x_codec_driver = { static struct platform_driver pm860x_codec_driver = {
.driver = { .driver = {
.name = "88pm860x-codec", .name = "88pm860x-codec",
.owner = THIS_MODULE,
}, },
.probe = pm860x_codec_probe, .probe = pm860x_codec_probe,
.remove = pm860x_codec_remove, .remove = pm860x_codec_remove,
......
...@@ -2609,7 +2609,6 @@ static int ab8500_codec_driver_remove(struct platform_device *pdev) ...@@ -2609,7 +2609,6 @@ static int ab8500_codec_driver_remove(struct platform_device *pdev)
static struct platform_driver ab8500_codec_platform_driver = { static struct platform_driver ab8500_codec_platform_driver = {
.driver = { .driver = {
.name = "ab8500-codec", .name = "ab8500-codec",
.owner = THIS_MODULE,
}, },
.probe = ab8500_codec_driver_probe, .probe = ab8500_codec_driver_probe,
.remove = ab8500_codec_driver_remove, .remove = ab8500_codec_driver_remove,
......
...@@ -134,7 +134,6 @@ static int ac97_remove(struct platform_device *pdev) ...@@ -134,7 +134,6 @@ static int ac97_remove(struct platform_device *pdev)
static struct platform_driver ac97_codec_driver = { static struct platform_driver ac97_codec_driver = {
.driver = { .driver = {
.name = "ac97-codec", .name = "ac97-codec",
.owner = THIS_MODULE,
}, },
.probe = ac97_probe, .probe = ac97_probe,
......
...@@ -312,7 +312,6 @@ static int ad1980_remove(struct platform_device *pdev) ...@@ -312,7 +312,6 @@ static int ad1980_remove(struct platform_device *pdev)
static struct platform_driver ad1980_codec_driver = { static struct platform_driver ad1980_codec_driver = {
.driver = { .driver = {
.name = "ad1980", .name = "ad1980",
.owner = THIS_MODULE,
}, },
.probe = ad1980_probe, .probe = ad1980_probe,
......
...@@ -76,7 +76,6 @@ static int ad73311_remove(struct platform_device *pdev) ...@@ -76,7 +76,6 @@ static int ad73311_remove(struct platform_device *pdev)
static struct platform_driver ad73311_codec_driver = { static struct platform_driver ad73311_codec_driver = {
.driver = { .driver = {
.name = "ad73311", .name = "ad73311",
.owner = THIS_MODULE,
}, },
.probe = ad73311_probe, .probe = ad73311_probe,
......
...@@ -78,7 +78,6 @@ static int ads117x_remove(struct platform_device *pdev) ...@@ -78,7 +78,6 @@ static int ads117x_remove(struct platform_device *pdev)
static struct platform_driver ads117x_codec_driver = { static struct platform_driver ads117x_codec_driver = {
.driver = { .driver = {
.name = "ads117x-codec", .name = "ads117x-codec",
.owner = THIS_MODULE,
}, },
.probe = ads117x_probe, .probe = ads117x_probe,
......
...@@ -93,7 +93,6 @@ MODULE_DEVICE_TABLE(of, ak4554_of_match); ...@@ -93,7 +93,6 @@ MODULE_DEVICE_TABLE(of, ak4554_of_match);
static struct platform_driver ak4554_driver = { static struct platform_driver ak4554_driver = {
.driver = { .driver = {
.name = "ak4554-adc-dac", .name = "ak4554-adc-dac",
.owner = THIS_MODULE,
.of_match_table = ak4554_of_match, .of_match_table = ak4554_of_match,
}, },
.probe = ak4554_soc_probe, .probe = ak4554_soc_probe,
......
...@@ -205,7 +205,6 @@ static struct platform_driver ak5386_driver = { ...@@ -205,7 +205,6 @@ static struct platform_driver ak5386_driver = {
.remove = ak5386_remove, .remove = ak5386_remove,
.driver = { .driver = {
.name = "ak5386", .name = "ak5386",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(ak5386_dt_ids), .of_match_table = of_match_ptr(ak5386_dt_ids),
}, },
}; };
......
...@@ -77,7 +77,6 @@ MODULE_DEVICE_TABLE(platform, bt_sco_driver_ids); ...@@ -77,7 +77,6 @@ MODULE_DEVICE_TABLE(platform, bt_sco_driver_ids);
static struct platform_driver bt_sco_driver = { static struct platform_driver bt_sco_driver = {
.driver = { .driver = {
.name = "bt-sco", .name = "bt-sco",
.owner = THIS_MODULE,
}, },
.probe = bt_sco_probe, .probe = bt_sco_probe,
.remove = bt_sco_remove, .remove = bt_sco_remove,
......
...@@ -184,7 +184,6 @@ static int cq93vc_platform_remove(struct platform_device *pdev) ...@@ -184,7 +184,6 @@ static int cq93vc_platform_remove(struct platform_device *pdev)
static struct platform_driver cq93vc_codec_driver = { static struct platform_driver cq93vc_codec_driver = {
.driver = { .driver = {
.name = "cq93vc-codec", .name = "cq93vc-codec",
.owner = THIS_MODULE,
}, },
.probe = cq93vc_platform_probe, .probe = cq93vc_platform_probe,
......
...@@ -429,7 +429,6 @@ static int __exit cx20442_platform_remove(struct platform_device *pdev) ...@@ -429,7 +429,6 @@ static int __exit cx20442_platform_remove(struct platform_device *pdev)
static struct platform_driver cx20442_platform_driver = { static struct platform_driver cx20442_platform_driver = {
.driver = { .driver = {
.name = "cx20442-codec", .name = "cx20442-codec",
.owner = THIS_MODULE,
}, },
.probe = cx20442_platform_probe, .probe = cx20442_platform_probe,
.remove = __exit_p(cx20442_platform_remove), .remove = __exit_p(cx20442_platform_remove),
......
...@@ -74,7 +74,6 @@ MODULE_ALIAS("platform:dmic-codec"); ...@@ -74,7 +74,6 @@ MODULE_ALIAS("platform:dmic-codec");
static struct platform_driver dmic_driver = { static struct platform_driver dmic_driver = {
.driver = { .driver = {
.name = "dmic-codec", .name = "dmic-codec",
.owner = THIS_MODULE,
}, },
.probe = dmic_dev_probe, .probe = dmic_dev_probe,
.remove = dmic_dev_remove, .remove = dmic_dev_remove,
......
...@@ -92,7 +92,6 @@ static int hdmi_codec_remove(struct platform_device *pdev) ...@@ -92,7 +92,6 @@ static int hdmi_codec_remove(struct platform_device *pdev)
static struct platform_driver hdmi_codec_driver = { static struct platform_driver hdmi_codec_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(hdmi_audio_codec_ids), .of_match_table = of_match_ptr(hdmi_audio_codec_ids),
}, },
......
...@@ -364,7 +364,6 @@ static struct platform_driver jz4740_codec_driver = { ...@@ -364,7 +364,6 @@ static struct platform_driver jz4740_codec_driver = {
.remove = jz4740_codec_remove, .remove = jz4740_codec_remove,
.driver = { .driver = {
.name = "jz4740-codec", .name = "jz4740-codec",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -802,7 +802,6 @@ static int mc13783_codec_remove(struct platform_device *pdev) ...@@ -802,7 +802,6 @@ static int mc13783_codec_remove(struct platform_device *pdev)
static struct platform_driver mc13783_codec_driver = { static struct platform_driver mc13783_codec_driver = {
.driver = { .driver = {
.name = "mc13783-codec", .name = "mc13783-codec",
.owner = THIS_MODULE,
}, },
.remove = mc13783_codec_remove, .remove = mc13783_codec_remove,
}; };
......
...@@ -162,7 +162,6 @@ static struct platform_driver pcm3008_codec_driver = { ...@@ -162,7 +162,6 @@ static struct platform_driver pcm3008_codec_driver = {
.remove = pcm3008_codec_remove, .remove = pcm3008_codec_remove,
.driver = { .driver = {
.name = "pcm3008-codec", .name = "pcm3008-codec",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -261,7 +261,6 @@ MODULE_ALIAS("platform:si476x-codec"); ...@@ -261,7 +261,6 @@ MODULE_ALIAS("platform:si476x-codec");
static struct platform_driver si476x_platform_driver = { static struct platform_driver si476x_platform_driver = {
.driver = { .driver = {
.name = "si476x-codec", .name = "si476x-codec",
.owner = THIS_MODULE,
}, },
.probe = si476x_platform_probe, .probe = si476x_platform_probe,
.remove = si476x_platform_remove, .remove = si476x_platform_remove,
......
...@@ -565,7 +565,6 @@ static const struct dev_pm_ops sirf_audio_codec_pm_ops = { ...@@ -565,7 +565,6 @@ static const struct dev_pm_ops sirf_audio_codec_pm_ops = {
static struct platform_driver sirf_audio_codec_driver = { static struct platform_driver sirf_audio_codec_driver = {
.driver = { .driver = {
.name = "sirf-audio-codec", .name = "sirf-audio-codec",
.owner = THIS_MODULE,
.of_match_table = sirf_audio_codec_of_match, .of_match_table = sirf_audio_codec_of_match,
.pm = &sirf_audio_codec_pm_ops, .pm = &sirf_audio_codec_pm_ops,
}, },
......
...@@ -916,7 +916,6 @@ static int sn95031_device_remove(struct platform_device *pdev) ...@@ -916,7 +916,6 @@ static int sn95031_device_remove(struct platform_device *pdev)
static struct platform_driver sn95031_codec_driver = { static struct platform_driver sn95031_codec_driver = {
.driver = { .driver = {
.name = "sn95031", .name = "sn95031",
.owner = THIS_MODULE,
}, },
.probe = sn95031_device_probe, .probe = sn95031_device_probe,
.remove = sn95031_device_remove, .remove = sn95031_device_remove,
......
...@@ -80,7 +80,6 @@ static struct platform_driver spdif_dir_driver = { ...@@ -80,7 +80,6 @@ static struct platform_driver spdif_dir_driver = {
.remove = spdif_dir_remove, .remove = spdif_dir_remove,
.driver = { .driver = {
.name = "spdif-dir", .name = "spdif-dir",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(spdif_dir_dt_ids), .of_match_table = of_match_ptr(spdif_dir_dt_ids),
}, },
}; };
......
...@@ -80,7 +80,6 @@ static struct platform_driver spdif_dit_driver = { ...@@ -80,7 +80,6 @@ static struct platform_driver spdif_dit_driver = {
.remove = spdif_dit_remove, .remove = spdif_dit_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(spdif_dit_dt_ids), .of_match_table = of_match_ptr(spdif_dit_dt_ids),
}, },
}; };
......
...@@ -396,7 +396,6 @@ static int stac9766_remove(struct platform_device *pdev) ...@@ -396,7 +396,6 @@ static int stac9766_remove(struct platform_device *pdev)
static struct platform_driver stac9766_codec_driver = { static struct platform_driver stac9766_codec_driver = {
.driver = { .driver = {
.name = "stac9766-codec", .name = "stac9766-codec",
.owner = THIS_MODULE,
}, },
.probe = stac9766_probe, .probe = stac9766_probe,
......
...@@ -2220,7 +2220,6 @@ static struct platform_driver twl4030_codec_driver = { ...@@ -2220,7 +2220,6 @@ static struct platform_driver twl4030_codec_driver = {
.remove = twl4030_codec_remove, .remove = twl4030_codec_remove,
.driver = { .driver = {
.name = "twl4030-codec", .name = "twl4030-codec",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -1198,7 +1198,6 @@ static int twl6040_codec_remove(struct platform_device *pdev) ...@@ -1198,7 +1198,6 @@ static int twl6040_codec_remove(struct platform_device *pdev)
static struct platform_driver twl6040_codec_driver = { static struct platform_driver twl6040_codec_driver = {
.driver = { .driver = {
.name = "twl6040-codec", .name = "twl6040-codec",
.owner = THIS_MODULE,
}, },
.probe = twl6040_codec_probe, .probe = twl6040_codec_probe,
.remove = twl6040_codec_remove, .remove = twl6040_codec_remove,
......
...@@ -633,7 +633,6 @@ static int uda134x_codec_remove(struct platform_device *pdev) ...@@ -633,7 +633,6 @@ static int uda134x_codec_remove(struct platform_device *pdev)
static struct platform_driver uda134x_codec_driver = { static struct platform_driver uda134x_codec_driver = {
.driver = { .driver = {
.name = "uda134x-codec", .name = "uda134x-codec",
.owner = THIS_MODULE,
}, },
.probe = uda134x_codec_probe, .probe = uda134x_codec_probe,
.remove = uda134x_codec_remove, .remove = uda134x_codec_remove,
......
...@@ -515,7 +515,6 @@ MODULE_ALIAS("platform:wl1273-codec"); ...@@ -515,7 +515,6 @@ MODULE_ALIAS("platform:wl1273-codec");
static struct platform_driver wl1273_platform_driver = { static struct platform_driver wl1273_platform_driver = {
.driver = { .driver = {
.name = "wl1273-codec", .name = "wl1273-codec",
.owner = THIS_MODULE,
}, },
.probe = wl1273_platform_probe, .probe = wl1273_platform_probe,
.remove = wl1273_platform_remove, .remove = wl1273_platform_remove,
......
...@@ -1958,7 +1958,6 @@ static int wm5102_remove(struct platform_device *pdev) ...@@ -1958,7 +1958,6 @@ static int wm5102_remove(struct platform_device *pdev)
static struct platform_driver wm5102_codec_driver = { static struct platform_driver wm5102_codec_driver = {
.driver = { .driver = {
.name = "wm5102-codec", .name = "wm5102-codec",
.owner = THIS_MODULE,
}, },
.probe = wm5102_probe, .probe = wm5102_probe,
.remove = wm5102_remove, .remove = wm5102_remove,
......
...@@ -1738,7 +1738,6 @@ static int wm5110_remove(struct platform_device *pdev) ...@@ -1738,7 +1738,6 @@ static int wm5110_remove(struct platform_device *pdev)
static struct platform_driver wm5110_codec_driver = { static struct platform_driver wm5110_codec_driver = {
.driver = { .driver = {
.name = "wm5110-codec", .name = "wm5110-codec",
.owner = THIS_MODULE,
}, },
.probe = wm5110_probe, .probe = wm5110_probe,
.remove = wm5110_remove, .remove = wm5110_remove,
......
...@@ -1641,7 +1641,6 @@ static int wm8350_remove(struct platform_device *pdev) ...@@ -1641,7 +1641,6 @@ static int wm8350_remove(struct platform_device *pdev)
static struct platform_driver wm8350_codec_driver = { static struct platform_driver wm8350_codec_driver = {
.driver = { .driver = {
.name = "wm8350-codec", .name = "wm8350-codec",
.owner = THIS_MODULE,
}, },
.probe = wm8350_probe, .probe = wm8350_probe,
.remove = wm8350_remove, .remove = wm8350_remove,
......
...@@ -1397,7 +1397,6 @@ static int wm8400_remove(struct platform_device *pdev) ...@@ -1397,7 +1397,6 @@ static int wm8400_remove(struct platform_device *pdev)
static struct platform_driver wm8400_codec_driver = { static struct platform_driver wm8400_codec_driver = {
.driver = { .driver = {
.name = "wm8400-codec", .name = "wm8400-codec",
.owner = THIS_MODULE,
}, },
.probe = wm8400_probe, .probe = wm8400_probe,
.remove = wm8400_remove, .remove = wm8400_remove,
......
...@@ -75,7 +75,6 @@ static int wm8727_remove(struct platform_device *pdev) ...@@ -75,7 +75,6 @@ static int wm8727_remove(struct platform_device *pdev)
static struct platform_driver wm8727_codec_driver = { static struct platform_driver wm8727_codec_driver = {
.driver = { .driver = {
.name = "wm8727", .name = "wm8727",
.owner = THIS_MODULE,
}, },
.probe = wm8727_probe, .probe = wm8727_probe,
......
...@@ -72,7 +72,6 @@ static int wm8782_remove(struct platform_device *pdev) ...@@ -72,7 +72,6 @@ static int wm8782_remove(struct platform_device *pdev)
static struct platform_driver wm8782_codec_driver = { static struct platform_driver wm8782_codec_driver = {
.driver = { .driver = {
.name = "wm8782", .name = "wm8782",
.owner = THIS_MODULE,
}, },
.probe = wm8782_probe, .probe = wm8782_probe,
.remove = wm8782_remove, .remove = wm8782_remove,
......
...@@ -4508,7 +4508,6 @@ static const struct dev_pm_ops wm8994_pm_ops = { ...@@ -4508,7 +4508,6 @@ static const struct dev_pm_ops wm8994_pm_ops = {
static struct platform_driver wm8994_codec_driver = { static struct platform_driver wm8994_codec_driver = {
.driver = { .driver = {
.name = "wm8994-codec", .name = "wm8994-codec",
.owner = THIS_MODULE,
.pm = &wm8994_pm_ops, .pm = &wm8994_pm_ops,
}, },
.probe = wm8994_probe, .probe = wm8994_probe,
......
...@@ -1165,7 +1165,6 @@ static int wm8997_remove(struct platform_device *pdev) ...@@ -1165,7 +1165,6 @@ static int wm8997_remove(struct platform_device *pdev)
static struct platform_driver wm8997_codec_driver = { static struct platform_driver wm8997_codec_driver = {
.driver = { .driver = {
.name = "wm8997-codec", .name = "wm8997-codec",
.owner = THIS_MODULE,
}, },
.probe = wm8997_probe, .probe = wm8997_probe,
.remove = wm8997_remove, .remove = wm8997_remove,
......
...@@ -395,7 +395,6 @@ static int wm9705_remove(struct platform_device *pdev) ...@@ -395,7 +395,6 @@ static int wm9705_remove(struct platform_device *pdev)
static struct platform_driver wm9705_codec_driver = { static struct platform_driver wm9705_codec_driver = {
.driver = { .driver = {
.name = "wm9705-codec", .name = "wm9705-codec",
.owner = THIS_MODULE,
}, },
.probe = wm9705_probe, .probe = wm9705_probe,
......
...@@ -700,7 +700,6 @@ static int wm9712_remove(struct platform_device *pdev) ...@@ -700,7 +700,6 @@ static int wm9712_remove(struct platform_device *pdev)
static struct platform_driver wm9712_codec_driver = { static struct platform_driver wm9712_codec_driver = {
.driver = { .driver = {
.name = "wm9712-codec", .name = "wm9712-codec",
.owner = THIS_MODULE,
}, },
.probe = wm9712_probe, .probe = wm9712_probe,
......
...@@ -1269,7 +1269,6 @@ static int wm9713_remove(struct platform_device *pdev) ...@@ -1269,7 +1269,6 @@ static int wm9713_remove(struct platform_device *pdev)
static struct platform_driver wm9713_codec_driver = { static struct platform_driver wm9713_codec_driver = {
.driver = { .driver = {
.name = "wm9713-codec", .name = "wm9713-codec",
.owner = THIS_MODULE,
}, },
.probe = wm9713_probe, .probe = wm9713_probe,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册