of: Remove duplicate fields from of_platform_driver
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / powerpc / sysdev / pmi.c
index ff758bff1b7afdf3a1d4638e67ffa9dc6aee9a21..d07137a07d7509b0e6cf082f5de6e421922f2091 100644 (file)
@@ -206,11 +206,12 @@ static int pmi_of_remove(struct of_device *dev)
 }
 
 static struct of_platform_driver pmi_of_platform_driver = {
-       .match_table    = pmi_match,
        .probe          = pmi_of_probe,
        .remove         = pmi_of_remove,
-       .driver         = {
-               .name   = "pmi",
+       .driver = {
+               .name = "pmi",
+               .owner = THIS_MODULE,
+               .of_match_table = pmi_match,
        },
 };