From: Greg Hackmann Date: Mon, 28 Oct 2013 22:33:33 +0000 (-0700) Subject: ANDROID: goldfishfb: add devicetree bindings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=89d5196454d91378a3b74d317b6cdc8e90fec5a9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ANDROID: goldfishfb: add devicetree bindings Change-Id: I5f4ba861b981edf39af537001f8ac72202927031 Signed-off-by: Greg Hackmann [AmitP: Folded following android-4.9 commit changes into this patch e4bc8c96ba03 ("ANDROID: video: goldfishfb: fix platform_no_drv_owner.cocci warnings")] Signed-off-by: Amit Pundir --- diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c index 7f6c9e6cfc6c..3b70044773b6 100644 --- a/drivers/video/fbdev/goldfishfb.c +++ b/drivers/video/fbdev/goldfishfb.c @@ -304,12 +304,18 @@ 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", + .of_match_table = goldfish_fb_of_match, } };