Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/hirin: Make use of the helper component_compare_of

Use the common compare helper from component.

Cc: Xinliang Liu <xinliang.liu@linaro.org>
Cc: Tian Tao <tiantao6@hisilicon.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Cc: Chen Feng <puck.chen@hisilicon.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Hao Fang <fanghao11@huawei.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Link: https://lore.kernel.org/r/20220214060819.7334-6-yong.wu@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Yong Wu and committed by
Greg Kroah-Hartman
0904b83e 0a522394

+1 -6
+1 -6
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
··· 203 203 return ret; 204 204 } 205 205 206 - static int compare_of(struct device *dev, void *data) 207 - { 208 - return dev->of_node == data; 209 - } 210 - 211 206 static int kirin_drm_kms_cleanup(struct drm_device *dev) 212 207 { 213 208 drm_kms_helper_poll_fini(dev); ··· 273 278 if (!remote) 274 279 return -ENODEV; 275 280 276 - drm_of_component_match_add(dev, &match, compare_of, remote); 281 + drm_of_component_match_add(dev, &match, component_compare_of, remote); 277 282 of_node_put(remote); 278 283 279 284 return component_master_add_with_match(dev, &kirin_drm_ops, match);