ANDROID: video: goldfishfb: add devicetree bindings
authorGreg Hackmann <ghackmann@google.com>
Mon, 28 Oct 2013 22:33:33 +0000 (15:33 -0700)
committerJin Qian <jinqian@google.com>
Thu, 17 Nov 2016 20:26:42 +0000 (12:26 -0800)
Change-Id: I5f4ba861b981edf39af537001f8ac72202927031
Signed-off-by: Greg Hackmann <ghackmann@google.com>
drivers/video/fbdev/goldfishfb.c

index 7f6c9e6cfc6c99d8d9912db5d2f78242923f51c5..f0e651bbbd614acb5301abee14dcb0712f2523ea 100644 (file)
@@ -304,12 +304,19 @@ static int goldfish_fb_remove(struct platform_device *pdev)
        return 0;
 }
 
+static const struct of_device_id goldfish_fb_of_match[] = {
+       { .compatible = "google,goldfish-fb", },
+       {},
+};
+MODULE_DEVICE_TABLE(of, goldfish_fb_of_match);
 
 static struct platform_driver goldfish_fb_driver = {
        .probe          = goldfish_fb_probe,
        .remove         = goldfish_fb_remove,
        .driver = {
-               .name = "goldfish_fb"
+               .name = "goldfish_fb",
+               .owner = THIS_MODULE,
+               .of_match_table = goldfish_fb_of_match,
        }
 };