Commit 64f84dc4 authored by Mark Brown's avatar Mark Brown

ASoC: drop driver owner assignment

Merge series from Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>:

Core for several drivers already sets the driver.owner, so driver does
not need to.  Simplify the drivers.
parents ea60ab95 29580cd7
...@@ -872,7 +872,6 @@ MODULE_DEVICE_TABLE(sdw, max98373_id); ...@@ -872,7 +872,6 @@ MODULE_DEVICE_TABLE(sdw, max98373_id);
static struct sdw_driver max98373_sdw_driver = { static struct sdw_driver max98373_sdw_driver = {
.driver = { .driver = {
.name = "max98373", .name = "max98373",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(max98373_of_match), .of_match_table = of_match_ptr(max98373_of_match),
.acpi_match_table = ACPI_PTR(max98373_acpi_match), .acpi_match_table = ACPI_PTR(max98373_acpi_match),
.pm = &max98373_pm, .pm = &max98373_pm,
......
...@@ -809,7 +809,6 @@ static const struct dev_pm_ops rt1017_sdca_pm = { ...@@ -809,7 +809,6 @@ static const struct dev_pm_ops rt1017_sdca_pm = {
static struct sdw_driver rt1017_sdca_sdw_driver = { static struct sdw_driver rt1017_sdca_sdw_driver = {
.driver = { .driver = {
.name = "rt1017-sdca", .name = "rt1017-sdca",
.owner = THIS_MODULE,
.pm = &rt1017_sdca_pm, .pm = &rt1017_sdca_pm,
}, },
.probe = rt1017_sdca_sdw_probe, .probe = rt1017_sdca_sdw_probe,
......
...@@ -804,7 +804,6 @@ static const struct dev_pm_ops rt1308_pm = { ...@@ -804,7 +804,6 @@ static const struct dev_pm_ops rt1308_pm = {
static struct sdw_driver rt1308_sdw_driver = { static struct sdw_driver rt1308_sdw_driver = {
.driver = { .driver = {
.name = "rt1308", .name = "rt1308",
.owner = THIS_MODULE,
.pm = &rt1308_pm, .pm = &rt1308_pm,
}, },
.probe = rt1308_sdw_probe, .probe = rt1308_sdw_probe,
......
...@@ -781,7 +781,6 @@ static const struct dev_pm_ops rt1316_pm = { ...@@ -781,7 +781,6 @@ static const struct dev_pm_ops rt1316_pm = {
static struct sdw_driver rt1316_sdw_driver = { static struct sdw_driver rt1316_sdw_driver = {
.driver = { .driver = {
.name = "rt1316-sdca", .name = "rt1316-sdca",
.owner = THIS_MODULE,
.pm = &rt1316_pm, .pm = &rt1316_pm,
}, },
.probe = rt1316_sdw_probe, .probe = rt1316_sdw_probe,
......
...@@ -855,7 +855,6 @@ static const struct dev_pm_ops rt1318_pm = { ...@@ -855,7 +855,6 @@ static const struct dev_pm_ops rt1318_pm = {
static struct sdw_driver rt1318_sdw_driver = { static struct sdw_driver rt1318_sdw_driver = {
.driver = { .driver = {
.name = "rt1318-sdca", .name = "rt1318-sdca",
.owner = THIS_MODULE,
.pm = &rt1318_pm, .pm = &rt1318_pm,
}, },
.probe = rt1318_sdw_probe, .probe = rt1318_sdw_probe,
......
...@@ -798,7 +798,6 @@ static const struct dev_pm_ops rt5682_pm = { ...@@ -798,7 +798,6 @@ static const struct dev_pm_ops rt5682_pm = {
static struct sdw_driver rt5682_sdw_driver = { static struct sdw_driver rt5682_sdw_driver = {
.driver = { .driver = {
.name = "rt5682", .name = "rt5682",
.owner = THIS_MODULE,
.pm = &rt5682_pm, .pm = &rt5682_pm,
}, },
.probe = rt5682_sdw_probe, .probe = rt5682_sdw_probe,
......
...@@ -558,7 +558,6 @@ static const struct dev_pm_ops rt700_pm = { ...@@ -558,7 +558,6 @@ static const struct dev_pm_ops rt700_pm = {
static struct sdw_driver rt700_sdw_driver = { static struct sdw_driver rt700_sdw_driver = {
.driver = { .driver = {
.name = "rt700", .name = "rt700",
.owner = THIS_MODULE,
.pm = &rt700_pm, .pm = &rt700_pm,
}, },
.probe = rt700_sdw_probe, .probe = rt700_sdw_probe,
......
...@@ -474,7 +474,6 @@ static const struct dev_pm_ops rt711_sdca_pm = { ...@@ -474,7 +474,6 @@ static const struct dev_pm_ops rt711_sdca_pm = {
static struct sdw_driver rt711_sdca_sdw_driver = { static struct sdw_driver rt711_sdca_sdw_driver = {
.driver = { .driver = {
.name = "rt711-sdca", .name = "rt711-sdca",
.owner = THIS_MODULE,
.pm = &rt711_sdca_pm, .pm = &rt711_sdca_pm,
}, },
.probe = rt711_sdca_sdw_probe, .probe = rt711_sdca_sdw_probe,
......
...@@ -569,7 +569,6 @@ static const struct dev_pm_ops rt711_pm = { ...@@ -569,7 +569,6 @@ static const struct dev_pm_ops rt711_pm = {
static struct sdw_driver rt711_sdw_driver = { static struct sdw_driver rt711_sdw_driver = {
.driver = { .driver = {
.name = "rt711", .name = "rt711",
.owner = THIS_MODULE,
.pm = &rt711_pm, .pm = &rt711_pm,
}, },
.probe = rt711_sdw_probe, .probe = rt711_sdw_probe,
......
...@@ -976,7 +976,6 @@ static int rt712_sdca_dmic_sdw_remove(struct sdw_slave *slave) ...@@ -976,7 +976,6 @@ static int rt712_sdca_dmic_sdw_remove(struct sdw_slave *slave)
static struct sdw_driver rt712_sdca_dmic_sdw_driver = { static struct sdw_driver rt712_sdca_dmic_sdw_driver = {
.driver = { .driver = {
.name = "rt712-sdca-dmic", .name = "rt712-sdca-dmic",
.owner = THIS_MODULE,
.pm = &rt712_sdca_dmic_pm, .pm = &rt712_sdca_dmic_pm,
}, },
.probe = rt712_sdca_dmic_sdw_probe, .probe = rt712_sdca_dmic_sdw_probe,
......
...@@ -474,7 +474,6 @@ static const struct dev_pm_ops rt712_sdca_pm = { ...@@ -474,7 +474,6 @@ static const struct dev_pm_ops rt712_sdca_pm = {
static struct sdw_driver rt712_sdca_sdw_driver = { static struct sdw_driver rt712_sdca_sdw_driver = {
.driver = { .driver = {
.name = "rt712-sdca", .name = "rt712-sdca",
.owner = THIS_MODULE,
.pm = &rt712_sdca_pm, .pm = &rt712_sdca_pm,
}, },
.probe = rt712_sdca_sdw_probe, .probe = rt712_sdca_sdw_probe,
......
...@@ -270,7 +270,6 @@ static const struct dev_pm_ops rt715_pm = { ...@@ -270,7 +270,6 @@ static const struct dev_pm_ops rt715_pm = {
static struct sdw_driver rt715_sdw_driver = { static struct sdw_driver rt715_sdw_driver = {
.driver = { .driver = {
.name = "rt715-sdca", .name = "rt715-sdca",
.owner = THIS_MODULE,
.pm = &rt715_pm, .pm = &rt715_pm,
}, },
.probe = rt715_sdca_sdw_probe, .probe = rt715_sdca_sdw_probe,
......
...@@ -577,7 +577,6 @@ static const struct dev_pm_ops rt715_pm = { ...@@ -577,7 +577,6 @@ static const struct dev_pm_ops rt715_pm = {
static struct sdw_driver rt715_sdw_driver = { static struct sdw_driver rt715_sdw_driver = {
.driver = { .driver = {
.name = "rt715", .name = "rt715",
.owner = THIS_MODULE,
.pm = &rt715_pm, .pm = &rt715_pm,
}, },
.probe = rt715_sdw_probe, .probe = rt715_sdw_probe,
......
...@@ -503,7 +503,6 @@ static const struct dev_pm_ops rt722_sdca_pm = { ...@@ -503,7 +503,6 @@ static const struct dev_pm_ops rt722_sdca_pm = {
static struct sdw_driver rt722_sdca_sdw_driver = { static struct sdw_driver rt722_sdca_sdw_driver = {
.driver = { .driver = {
.name = "rt722-sdca", .name = "rt722-sdca",
.owner = THIS_MODULE,
.pm = &rt722_sdca_pm, .pm = &rt722_sdca_pm,
}, },
.probe = rt722_sdca_sdw_probe, .probe = rt722_sdca_sdw_probe,
......
...@@ -262,7 +262,6 @@ MODULE_DEVICE_TABLE(sdw, sdw_mockup_id); ...@@ -262,7 +262,6 @@ MODULE_DEVICE_TABLE(sdw, sdw_mockup_id);
static struct sdw_driver sdw_mockup_sdw_driver = { static struct sdw_driver sdw_mockup_sdw_driver = {
.driver = { .driver = {
.name = "sdw-mockup", .name = "sdw-mockup",
.owner = THIS_MODULE,
}, },
.probe = sdw_mockup_sdw_probe, .probe = sdw_mockup_sdw_probe,
.remove = sdw_mockup_sdw_remove, .remove = sdw_mockup_sdw_remove,
......
...@@ -56,7 +56,6 @@ MODULE_DEVICE_TABLE(of, aic32x4_of_id); ...@@ -56,7 +56,6 @@ MODULE_DEVICE_TABLE(of, aic32x4_of_id);
static struct spi_driver aic32x4_spi_driver = { static struct spi_driver aic32x4_spi_driver = {
.driver = { .driver = {
.name = "tlv320aic32x4", .name = "tlv320aic32x4",
.owner = THIS_MODULE,
.of_match_table = aic32x4_of_id, .of_match_table = aic32x4_of_id,
}, },
.probe = aic32x4_spi_probe, .probe = aic32x4_spi_probe,
......
...@@ -63,7 +63,6 @@ MODULE_DEVICE_TABLE(of, aic3x_of_id); ...@@ -63,7 +63,6 @@ MODULE_DEVICE_TABLE(of, aic3x_of_id);
static struct spi_driver aic3x_spi_driver = { static struct spi_driver aic3x_spi_driver = {
.driver = { .driver = {
.name = "tlv320aic3x", .name = "tlv320aic3x",
.owner = THIS_MODULE,
.of_match_table = aic3x_of_id, .of_match_table = aic3x_of_id,
}, },
.probe = aic3x_spi_probe, .probe = aic3x_spi_probe,
......
...@@ -160,7 +160,6 @@ static struct pci_driver loongson_i2s_driver = { ...@@ -160,7 +160,6 @@ static struct pci_driver loongson_i2s_driver = {
.id_table = loongson_i2s_ids, .id_table = loongson_i2s_ids,
.probe = loongson_i2s_pci_probe, .probe = loongson_i2s_pci_probe,
.driver = { .driver = {
.owner = THIS_MODULE,
.pm = pm_sleep_ptr(&loongson_i2s_pm), .pm = pm_sleep_ptr(&loongson_i2s_pm),
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment