Skip to content

Commit ab011ab

Browse files
YongWu-HFgregkh
authored andcommitted
drm: of: Make use of the helper component_release_of
Use the common release helper from component. Cc: Maarten Lankhorst <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Thomas Zimmermann <[email protected]> Signed-off-by: Yong Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 947f019 commit ab011ab

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/gpu/drm/drm_of.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
* properties.
1919
*/
2020

21-
static void drm_release_of(struct device *dev, void *data)
22-
{
23-
of_node_put(data);
24-
}
25-
2621
/**
2722
* drm_of_crtc_port_mask - find the mask of a registered CRTC by port OF node
2823
* @dev: DRM device
@@ -94,7 +89,7 @@ void drm_of_component_match_add(struct device *master,
9489
struct device_node *node)
9590
{
9691
of_node_get(node);
97-
component_match_add_release(master, matchptr, drm_release_of,
92+
component_match_add_release(master, matchptr, component_release_of,
9893
compare, node);
9994
}
10095
EXPORT_SYMBOL_GPL(drm_of_component_match_add);

0 commit comments

Comments
 (0)