summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/arm/hdlcd_drv.c
diff options
context:
space:
mode:
authorRussell King2016-10-19 12:28:27 +0200
committerSean Paul2016-10-25 17:52:38 +0200
commit97ac0e47aed5f635893b0e2df634c64b38ca7541 (patch)
tree54928ee5e81e365fc82b5cab2dbae80f6be152d9 /drivers/gpu/drm/arm/hdlcd_drv.c
parentdma-buf: Rename struct fence to dma_fence (diff)
downloadkernel-qcow2-linux-97ac0e47aed5f635893b0e2df634c64b38ca7541.tar.gz
kernel-qcow2-linux-97ac0e47aed5f635893b0e2df634c64b38ca7541.tar.xz
kernel-qcow2-linux-97ac0e47aed5f635893b0e2df634c64b38ca7541.zip
drm: convert DT component matching to component_match_add_release()
Convert DT component matching to use component_match_add_release(). Acked-by: Jyri Sarha <jsarha@ti.com> Reviewed-by: Jyri Sarha <jsarha@ti.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/E1bwo6l-0005Io-Q1@rmk-PC.armlinux.org.uk
Diffstat (limited to 'drivers/gpu/drm/arm/hdlcd_drv.c')
-rw-r--r--drivers/gpu/drm/arm/hdlcd_drv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/arm/hdlcd_drv.c b/drivers/gpu/drm/arm/hdlcd_drv.c
index fb6a418ce6be..6477d1a65266 100644
--- a/drivers/gpu/drm/arm/hdlcd_drv.c
+++ b/drivers/gpu/drm/arm/hdlcd_drv.c
@@ -453,7 +453,8 @@ static int hdlcd_probe(struct platform_device *pdev)
return -EAGAIN;
}
- component_match_add(&pdev->dev, &match, compare_dev, port);
+ drm_of_component_match_add(&pdev->dev, &match, compare_dev, port);
+ of_node_put(port);
return component_master_add_with_match(&pdev->dev, &hdlcd_master_ops,
match);