aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/amba-clcd-nomadik.c
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2017-01-30 17:39:48 +0100
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-01-30 17:39:48 +0100
commitbe7367968f54b452ee221ba03458593499e040cc (patch)
tree76f83916701aa7263082dabb4685e9fa9dbaf0cd /drivers/video/fbdev/amba-clcd-nomadik.c
parentvideo: ARM CLCD: sort included headers out alphabetically (diff)
downloadlinux-dev-be7367968f54b452ee221ba03458593499e040cc.tar.xz
linux-dev-be7367968f54b452ee221ba03458593499e040cc.zip
video: ARM CLCD: use panel device node for panel initialization
There is no necessity to pass an endpoint device node to custom panel initialization functions, because a child panel device node should be sufficient, note that the existing init_panel() callback declaration from linux/amba/clcd.h already prompts to use the panel device node here. Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: Russell King <linux@armlinux.org.uk> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/amba-clcd-nomadik.c')
-rw-r--r--drivers/video/fbdev/amba-clcd-nomadik.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/video/fbdev/amba-clcd-nomadik.c b/drivers/video/fbdev/amba-clcd-nomadik.c
index 0c06fcaaa6e8..a9a8f7543454 100644
--- a/drivers/video/fbdev/amba-clcd-nomadik.c
+++ b/drivers/video/fbdev/amba-clcd-nomadik.c
@@ -214,15 +214,8 @@ static void tpg110_init(struct device *dev, struct device_node *np,
board->disable = tpg110_disable;
}
-int nomadik_clcd_init_panel(struct clcd_fb *fb,
- struct device_node *endpoint)
+int nomadik_clcd_init_panel(struct clcd_fb *fb, struct device_node *panel)
{
- struct device_node *panel;
-
- panel = of_graph_get_remote_port_parent(endpoint);
- if (!panel)
- return -ENODEV;
-
if (of_device_is_compatible(panel, "tpo,tpg110"))
tpg110_init(&fb->dev->dev, panel, fb->board);
else