Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31ff6b2a authored by Aleksandar Markovic's avatar Aleksandar Markovic Committed by Bartlomiej Zolnierkiewicz
Browse files

video: goldfishfb: Add support for device tree bindings



Add ability to the Goldfish FB driver to be recognized by OS via DT.

Signed-off-by: default avatarMiodrag Dinic <miodrag.dinic@mips.com>
Signed-off-by: default avatarGoran Ferenc <goran.ferenc@mips.com>
Signed-off-by: default avatarAleksandar Markovic <aleksandar.markovic@mips.com>
Cc: Douglas Leung <douglas.leung@mips.com>
Cc: James Hogan <james.hogan@mips.com>
Cc: Paul Burton <paul.burton@mips.com>
Cc: Petar Jovanovic <petar.jovanovic@mips.com>
Cc: Raghu Gandham <raghu.gandham@mips.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent bad12f43
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -304,12 +304,18 @@ static int goldfish_fb_remove(struct platform_device *pdev)
	return 0;
	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 = {
static struct platform_driver goldfish_fb_driver = {
	.probe		= goldfish_fb_probe,
	.probe		= goldfish_fb_probe,
	.remove		= goldfish_fb_remove,
	.remove		= goldfish_fb_remove,
	.driver = {
	.driver = {
		.name = "goldfish_fb"
		.name = "goldfish_fb",
		.of_match_table = goldfish_fb_of_match,
	}
	}
};
};