We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 419838b commit 947f019Copy full SHA for 947f019
drivers/gpu/drm/vc4/vc4_drv.c
@@ -187,11 +187,6 @@ static struct drm_driver vc4_drm_driver = {
187
.patchlevel = DRIVER_PATCHLEVEL,
188
};
189
190
-static int compare_dev(struct device *dev, void *data)
191
-{
192
- return dev == data;
193
-}
194
-
195
static void vc4_match_add_drivers(struct device *dev,
196
struct component_match **match,
197
struct platform_driver *const *drivers,
@@ -205,7 +200,7 @@ static void vc4_match_add_drivers(struct device *dev,
205
200
206
201
while ((d = platform_find_device_by_driver(p, drv))) {
207
202
put_device(p);
208
- component_match_add(dev, match, compare_dev, d);
203
+ component_match_add(dev, match, component_compare_dev, d);
209
204
p = d;
210
}
211
0 commit comments