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
This commit is contained in:
@ -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);
|
||||
|
@ -493,7 +493,9 @@ static int malidp_platform_probe(struct platform_device *pdev)
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
component_match_add(&pdev->dev, &match, malidp_compare_dev, port);
|
||||
drm_of_component_match_add(&pdev->dev, &match, malidp_compare_dev,
|
||||
port);
|
||||
of_node_put(port);
|
||||
return component_master_add_with_match(&pdev->dev, &malidp_master_ops,
|
||||
match);
|
||||
}
|
||||
|
Reference in New Issue
Block a user