of: Remove duplicate fields from of_platform_driver
[firefly-linux-kernel-4.4.55.git] / drivers / sbus / char / flash.c
index 202ff8f75afbde3c071dde3a1b165799eecdaa75..0427e586975f38ffb620453fa06cb2978606c9de 100644 (file)
@@ -207,8 +207,11 @@ static const struct of_device_id flash_match[] = {
 MODULE_DEVICE_TABLE(of, flash_match);
 
 static struct of_platform_driver flash_driver = {
-       .name           = "flash",
-       .match_table    = flash_match,
+       .driver = {
+               .name = "flash",
+               .owner = THIS_MODULE,
+               .of_match_table = flash_match,
+       },
        .probe          = flash_probe,
        .remove         = __devexit_p(flash_remove),
 };