From: Greg Hackmann Date: Fri, 25 Jul 2014 21:02:57 +0000 (-0700) Subject: platform: goldfish: pipe: add devicetree bindings X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c56d07eb796066530e93a40e74dea3bc59bf4cf;p=platform%2Fkernel%2Flinux-arm64.git platform: goldfish: pipe: add devicetree bindings Change-Id: I25fbcbbe3201df71d2f84d2f338b86bc3934c641 Signed-off-by: Greg Hackmann --- diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c index 10e1e95efea..1283527a039 100644 --- a/drivers/platform/goldfish/goldfish_pipe.c +++ b/drivers/platform/goldfish/goldfish_pipe.c @@ -634,11 +634,19 @@ static int goldfish_pipe_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id goldfish_pipe_of_match[] = { + { .compatible = "generic,android-pipe", }, + {}, +}; +MODULE_DEVICE_TABLE(of, goldfish_pipe_of_match); + static struct platform_driver goldfish_pipe = { .probe = goldfish_pipe_probe, .remove = goldfish_pipe_remove, .driver = { - .name = "goldfish_pipe" + .name = "goldfish_pipe", + .owner = THIS_MODULE, + .of_match_table = goldfish_pipe_of_match, } };