Skip to content

Commit 3994deb

Browse files
committed
drivers/base: Remove unused auxiliary_find_device
JIRA: https://issues.redhat.com/browse/RHEL-81536 commit 0ebe74c Author: Dr. David Alan Gilbert <linux@treblig.org> Date: Mon, 14 Oct 2024 08:21:09 +0000 auxiliary_find_device has been unused since commit 1c5de09 ("net/mlx5: Fix mlx5_get_next_dev() peer device matching") which was the only use since it was originally added. Remove it. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Link: https://lore.kernel.org/r/20240929141112.69824-1-linux@treblig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
1 parent b72ecb0 commit 3994deb

File tree

3 files changed

+0
-34
lines changed

3 files changed

+0
-34
lines changed

Documentation/driver-api/auxiliary_bus.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Auxiliary Device Creation
2323

2424
.. kernel-doc:: drivers/base/auxiliary.c
2525
:identifiers: auxiliary_device_init __auxiliary_device_add
26-
auxiliary_find_device
2726

2827
Auxiliary Device Memory Model and Lifespan
2928
------------------------------------------

drivers/base/auxiliary.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -335,35 +335,6 @@ int __auxiliary_device_add(struct auxiliary_device *auxdev, const char *modname)
335335
}
336336
EXPORT_SYMBOL_GPL(__auxiliary_device_add);
337337

338-
/**
339-
* auxiliary_find_device - auxiliary device iterator for locating a particular device.
340-
* @start: Device to begin with
341-
* @data: Data to pass to match function
342-
* @match: Callback function to check device
343-
*
344-
* This function returns a reference to a device that is 'found'
345-
* for later use, as determined by the @match callback.
346-
*
347-
* The reference returned should be released with put_device().
348-
*
349-
* The callback should return 0 if the device doesn't match and non-zero
350-
* if it does. If the callback returns non-zero, this function will
351-
* return to the caller and not iterate over any more devices.
352-
*/
353-
struct auxiliary_device *auxiliary_find_device(struct device *start,
354-
const void *data,
355-
device_match_t match)
356-
{
357-
struct device *dev;
358-
359-
dev = bus_find_device(&auxiliary_bus_type, start, data, match);
360-
if (!dev)
361-
return NULL;
362-
363-
return to_auxiliary_dev(dev);
364-
}
365-
EXPORT_SYMBOL_GPL(auxiliary_find_device);
366-
367338
/**
368339
* __auxiliary_driver_register - register a driver for auxiliary bus devices
369340
* @auxdrv: auxiliary_driver structure

include/linux/auxiliary_bus.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,4 @@ void auxiliary_driver_unregister(struct auxiliary_driver *auxdrv);
265265
#define module_auxiliary_driver(__auxiliary_driver) \
266266
module_driver(__auxiliary_driver, auxiliary_driver_register, auxiliary_driver_unregister)
267267

268-
struct auxiliary_device *auxiliary_find_device(struct device *start,
269-
const void *data,
270-
device_match_t match);
271-
272268
#endif /* _AUXILIARY_BUS_H_ */

0 commit comments

Comments
 (0)