Linux-Kernel Archive: [PATCH v5 4/5] video: goldfishfb: Add support for device tree bindings [PATCH v5 4/5] video: goldfishfb: Add support for device tree bindings From: Aleksandar Markovic Date: Fri Oct 20 2017 - 10:36:19 EST Next message: Aleksandar Markovic: "[PATCH v5 5/5] MIPS: ranchu: Add Ranchu as a new generic-based board" Previous message: Kees Cook: "[PATCH] waitid(): Avoid unbalanced user_access_end() on access_ok() error" In reply to: Aleksandar Markovic: "[PATCH v5 3/5] Documentation: Add device tree binding for Goldfish FB driver" Next in thread: Aleksandar Markovic: "[PATCH v5 5/5] MIPS: ranchu: Add Ranchu as a new generic-based board" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] From: Aleksandar Markovic
Add ability to the Goldfish FB driver to be recognized by OS via DT. Signed-off-by: Miodrag Dinic Signed-off-by: Goran Ferenc Signed-off-by: Aleksandar Markovic --- drivers/video/fbdev/goldfishfb.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c index 7f6c9e6..3b70044 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, } }; -- 2.7.4 Next message: Aleksandar Markovic: "[PATCH v5 5/5] MIPS: ranchu: Add Ranchu as a new generic-based board" Previous message: Kees Cook: "[PATCH] waitid(): Avoid unbalanced user_access_end() on access_ok() error" In reply to: Aleksandar Markovic: "[PATCH v5 3/5] Documentation: Add device tree binding for Goldfish FB driver" Next in thread: Aleksandar Markovic: "[PATCH v5 5/5] MIPS: ranchu: Add Ranchu as a new generic-based board" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]