lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 14 Feb 2022 14:08:13 +0800 From: Yong Wu <yong.wu@...iatek.com> To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>, David Airlie <airlied@...ux.ie>, Daniel Vetter <daniel@...ll.ch>, <dri-devel@...ts.freedesktop.org> CC: James Wang <james.qian.wang@....com>, Liviu Dudau <liviu.dudau@....com>, <iommu@...ts.linux-foundation.org>, Matthias Brugger <matthias.bgg@...il.com>, Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>, <linux-kernel@...r.kernel.org>, "Joerg Roedel" <joro@...tes.org>, Will Deacon <will@...nel.org>, Arnd Bergmann <arnd@...db.de>, Laurent Pinchart <laurent.pinchart@...asonboard.com>, <linux-mediatek@...ts.infradead.org>, Chun-Kuang Hu <chunkuang.hu@...nel.org>, <linux-arm-kernel@...ts.infradead.org>, "Stephen Boyd" <sboyd@...nel.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>, Hsin-Yi Wang <hsinyi@...omium.org>, Robin Murphy <robin.murphy@....com>, Tomasz Figa <tfiga@...omium.org>, <srv_heupstream@...iatek.com>, Rob Clark <robdclark@...il.com>, Srinivas Kandagatla <srinivas.kandagatla@...aro.org>, Sebastian Reichel <sre@...nel.org>, Yong Wu <yong.wu@...iatek.com>, "Emma Anholt" <emma@...olt.net>, Maxime Ripard <mripard@...nel.org> Subject: [PATCH 17/23] drm/vc4: Make use of the helper component_compare_dev Use the common compare helper from component. Cc: Emma Anholt <emma@...olt.net> Cc: Maxime Ripard <mripard@...nel.org> Signed-off-by: Yong Wu <yong.wu@...iatek.com> --- drivers/gpu/drm/vc4/vc4_drv.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c index 16abc3a3d601..e0f4c2ef8ba6 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c @@ -187,11 +187,6 @@ static struct drm_driver vc4_drm_driver = { .patchlevel = DRIVER_PATCHLEVEL, }; -static int compare_dev(struct device *dev, void *data) -{ - return dev == data; -} - static void vc4_match_add_drivers(struct device *dev, struct component_match **match, struct platform_driver *const *drivers, @@ -205,7 +200,7 @@ static void vc4_match_add_drivers(struct device *dev, while ((d = platform_find_device_by_driver(p, drv))) { put_device(p); - component_match_add(dev, match, compare_dev, d); + component_match_add(dev, match, component_compare_dev, d); p = d; } put_device(p); -- 2.18.0
Powered by blists - more mailing lists