Commit de720242 authored by Wolfram Sang's avatar Wolfram Sang

sparc: kernel: 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: default avatarWolfram Sang <wsa@the-dreams.de>
parent 1d5f672e
...@@ -178,7 +178,6 @@ MODULE_DEVICE_TABLE(of, apc_match); ...@@ -178,7 +178,6 @@ MODULE_DEVICE_TABLE(of, apc_match);
static struct platform_driver apc_driver = { static struct platform_driver apc_driver = {
.driver = { .driver = {
.name = "apc", .name = "apc",
.owner = THIS_MODULE,
.of_match_table = apc_match, .of_match_table = apc_match,
}, },
.probe = apc_probe, .probe = apc_probe,
......
...@@ -135,7 +135,6 @@ static struct platform_driver auxio_driver = { ...@@ -135,7 +135,6 @@ static struct platform_driver auxio_driver = {
.probe = auxio_probe, .probe = auxio_probe,
.driver = { .driver = {
.name = "auxio", .name = "auxio",
.owner = THIS_MODULE,
.of_match_table = auxio_match, .of_match_table = auxio_match,
}, },
}; };
......
...@@ -152,7 +152,6 @@ static struct platform_driver clock_board_driver = { ...@@ -152,7 +152,6 @@ static struct platform_driver clock_board_driver = {
.probe = clock_board_probe, .probe = clock_board_probe,
.driver = { .driver = {
.name = "clock_board", .name = "clock_board",
.owner = THIS_MODULE,
.of_match_table = clock_board_match, .of_match_table = clock_board_match,
}, },
}; };
...@@ -257,7 +256,6 @@ static struct platform_driver fhc_driver = { ...@@ -257,7 +256,6 @@ static struct platform_driver fhc_driver = {
.probe = fhc_probe, .probe = fhc_probe,
.driver = { .driver = {
.name = "fhc", .name = "fhc",
.owner = THIS_MODULE,
.of_match_table = fhc_match, .of_match_table = fhc_match,
}, },
}; };
......
...@@ -810,7 +810,6 @@ MODULE_DEVICE_TABLE(of, us3mc_match); ...@@ -810,7 +810,6 @@ MODULE_DEVICE_TABLE(of, us3mc_match);
static struct platform_driver us3mc_driver = { static struct platform_driver us3mc_driver = {
.driver = { .driver = {
.name = "us3mc", .name = "us3mc",
.owner = THIS_MODULE,
.of_match_table = us3mc_match, .of_match_table = us3mc_match,
}, },
.probe = us3mc_probe, .probe = us3mc_probe,
......
...@@ -708,7 +708,6 @@ static struct of_device_id grpci1_of_match[] = { ...@@ -708,7 +708,6 @@ static struct of_device_id grpci1_of_match[] = {
static struct platform_driver grpci1_of_driver = { static struct platform_driver grpci1_of_driver = {
.driver = { .driver = {
.name = "grpci1", .name = "grpci1",
.owner = THIS_MODULE,
.of_match_table = grpci1_of_match, .of_match_table = grpci1_of_match,
}, },
.probe = grpci1_of_probe, .probe = grpci1_of_probe,
......
...@@ -900,7 +900,6 @@ static struct of_device_id grpci2_of_match[] = { ...@@ -900,7 +900,6 @@ static struct of_device_id grpci2_of_match[] = {
static struct platform_driver grpci2_of_driver = { static struct platform_driver grpci2_of_driver = {
.driver = { .driver = {
.name = "grpci2", .name = "grpci2",
.owner = THIS_MODULE,
.of_match_table = grpci2_of_match, .of_match_table = grpci2_of_match,
}, },
.probe = grpci2_of_probe, .probe = grpci2_of_probe,
......
...@@ -508,7 +508,6 @@ static const struct of_device_id fire_match[] = { ...@@ -508,7 +508,6 @@ static const struct of_device_id fire_match[] = {
static struct platform_driver fire_driver = { static struct platform_driver fire_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = fire_match, .of_match_table = fire_match,
}, },
.probe = fire_probe, .probe = fire_probe,
......
...@@ -604,7 +604,6 @@ static const struct of_device_id psycho_match[] = { ...@@ -604,7 +604,6 @@ static const struct of_device_id psycho_match[] = {
static struct platform_driver psycho_driver = { static struct platform_driver psycho_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = psycho_match, .of_match_table = psycho_match,
}, },
.probe = psycho_probe, .probe = psycho_probe,
......
...@@ -600,7 +600,6 @@ static const struct of_device_id sabre_match[] = { ...@@ -600,7 +600,6 @@ static const struct of_device_id sabre_match[] = {
static struct platform_driver sabre_driver = { static struct platform_driver sabre_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = sabre_match, .of_match_table = sabre_match,
}, },
.probe = sabre_probe, .probe = sabre_probe,
......
...@@ -1495,7 +1495,6 @@ static const struct of_device_id schizo_match[] = { ...@@ -1495,7 +1495,6 @@ static const struct of_device_id schizo_match[] = {
static struct platform_driver schizo_driver = { static struct platform_driver schizo_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = schizo_match, .of_match_table = schizo_match,
}, },
.probe = schizo_probe, .probe = schizo_probe,
......
...@@ -1010,7 +1010,6 @@ static const struct of_device_id pci_sun4v_match[] = { ...@@ -1010,7 +1010,6 @@ static const struct of_device_id pci_sun4v_match[] = {
static struct platform_driver pci_sun4v_driver = { static struct platform_driver pci_sun4v_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = pci_sun4v_match, .of_match_table = pci_sun4v_match,
}, },
.probe = pci_sun4v_probe, .probe = pci_sun4v_probe,
......
...@@ -82,7 +82,6 @@ MODULE_DEVICE_TABLE(of, pmc_match); ...@@ -82,7 +82,6 @@ MODULE_DEVICE_TABLE(of, pmc_match);
static struct platform_driver pmc_driver = { static struct platform_driver pmc_driver = {
.driver = { .driver = {
.name = "pmc", .name = "pmc",
.owner = THIS_MODULE,
.of_match_table = pmc_match, .of_match_table = pmc_match,
}, },
.probe = pmc_probe, .probe = pmc_probe,
......
...@@ -63,7 +63,6 @@ static struct platform_driver power_driver = { ...@@ -63,7 +63,6 @@ static struct platform_driver power_driver = {
.probe = power_probe, .probe = power_probe,
.driver = { .driver = {
.name = "power", .name = "power",
.owner = THIS_MODULE,
.of_match_table = power_match, .of_match_table = power_match,
}, },
}; };
......
...@@ -322,7 +322,6 @@ static struct platform_driver clock_driver = { ...@@ -322,7 +322,6 @@ static struct platform_driver clock_driver = {
.probe = clock_probe, .probe = clock_probe,
.driver = { .driver = {
.name = "rtc", .name = "rtc",
.owner = THIS_MODULE,
.of_match_table = clock_match, .of_match_table = clock_match,
}, },
}; };
......
...@@ -466,7 +466,6 @@ static struct platform_driver rtc_driver = { ...@@ -466,7 +466,6 @@ static struct platform_driver rtc_driver = {
.probe = rtc_probe, .probe = rtc_probe,
.driver = { .driver = {
.name = "rtc", .name = "rtc",
.owner = THIS_MODULE,
.of_match_table = rtc_match, .of_match_table = rtc_match,
}, },
}; };
...@@ -499,7 +498,6 @@ static struct platform_driver bq4802_driver = { ...@@ -499,7 +498,6 @@ static struct platform_driver bq4802_driver = {
.probe = bq4802_probe, .probe = bq4802_probe,
.driver = { .driver = {
.name = "bq4802", .name = "bq4802",
.owner = THIS_MODULE,
.of_match_table = bq4802_match, .of_match_table = bq4802_match,
}, },
}; };
...@@ -563,7 +561,6 @@ static struct platform_driver mostek_driver = { ...@@ -563,7 +561,6 @@ static struct platform_driver mostek_driver = {
.probe = mostek_probe, .probe = mostek_probe,
.driver = { .driver = {
.name = "mostek", .name = "mostek",
.owner = THIS_MODULE,
.of_match_table = mostek_match, .of_match_table = mostek_match,
}, },
}; };
......
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