aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong Wu <[email protected]>2022-02-14 14:08:09 +0800
committerGreg Kroah-Hartman <[email protected]>2022-02-25 12:16:13 +0100
commitf798aa411fa6712eb885a8b5d138487736c55824 (patch)
tree14beb3ee39d2a13a003f018e5c84170e256debef
parent6817222e8158c5ffee46fc3fbb8571e5bc1e1faa (diff)
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]>
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_drv.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
index bec207de4544..3c2f2d6ecc36 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
@@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
return false;
}
-static int compare_dev(struct device *dev, void *data)
-{
- return dev == (struct device *)data;
-}
-
static void rockchip_drm_match_remove(struct device *dev)
{
struct device_link *link;
@@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
break;
device_link_add(dev, d, DL_FLAG_STATELESS);
- component_match_add(dev, &match, compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
} while (true);
}