Skip to content

Commit f798aa4

Browse files
YongWu-HFgregkh
authored andcommitted
drm/rockchip: Make use of the helper component_compare_dev
Use the common compare helper from component. Cc: Sandy Huang <[email protected]> Cc: "Heiko St¨¹bner" <[email protected]> Cc: [email protected] Acked-by: Heiko Stuebner <[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 6817222 commit f798aa4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/gpu/drm/rockchip/rockchip_drm_drv.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
290290
return false;
291291
}
292292

293-
static int compare_dev(struct device *dev, void *data)
294-
{
295-
return dev == (struct device *)data;
296-
}
297-
298293
static void rockchip_drm_match_remove(struct device *dev)
299294
{
300295
struct device_link *link;
@@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
321316
break;
322317

323318
device_link_add(dev, d, DL_FLAG_STATELESS);
324-
component_match_add(dev, &match, compare_dev, d);
319+
component_match_add(dev, &match, component_compare_dev, d);
325320
} while (true);
326321
}
327322

0 commit comments

Comments
 (0)