diff options
author | Greg Hackmann <ghackmann@google.com> | 2013-10-28 15:33:33 -0700 |
---|---|---|
committer | Jin Qian <jinqian@google.com> | 2016-11-17 12:26:42 -0800 |
commit | 95f38dcf1d106e62e97f207344978d6230a9c292 (patch) | |
tree | b3ae5f2c8dbab428bb700ceda90666f3fe2aecc9 /drivers | |
parent | f3d949fd57efc8d8a868517e0f64b77662388417 (diff) |
ANDROID: video: goldfishfb: add devicetree bindings
Change-Id: I5f4ba861b981edf39af537001f8ac72202927031
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/fbdev/goldfishfb.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c index 7f6c9e6cfc6c..f0e651bbbd61 100644 --- a/drivers/video/fbdev/goldfishfb.c +++ b/drivers/video/fbdev/goldfishfb.c @@ -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, } }; |