of: Remove duplicate fields from of_platform_driver

.name, .match_table and .owner are duplicated in both of_platform_driver
and device_driver.  This patch is a removes the extra copies from struct
of_platform_driver and converts all users to the device_driver members.

This patch is a pretty mechanical change.  The usage model doesn't change
and if any drivers have been missed, or if anything has been fixed up
incorrectly, then it will fail with a compile time error, and the fixup
will be trivial.  This patch looks big and scary because it touches so
many files, but it should be pretty safe.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Sean MacLennan <smaclennan@pikatech.com>
Šī revīzija ir iekļauta:
Grant Likely
2010-04-13 16:13:02 -07:00
vecāks 597b9d1e44
revīzija 4018294b53
146 mainīti faili ar 671 papildinājumiem un 387 dzēšanām

Parādīt failu

@@ -303,9 +303,11 @@ static const struct of_device_id gef_wdt_ids[] = {
};
static struct of_platform_driver gef_wdt_driver = {
.owner = THIS_MODULE,
.name = "gef_wdt",
.match_table = gef_wdt_ids,
.driver = {
.name = "gef_wdt",
.owner = THIS_MODULE,
.of_match_table = gef_wdt_ids,
},
.probe = gef_wdt_probe,
};