|
92 | 92 | * Auxiliary devices are created and registered by a subsystem-level core |
93 | 93 | * device that needs to break up its functionality into smaller fragments. One |
94 | 94 | * way to extend the scope of an auxiliary_device is to encapsulate it within a |
95 | | - * domain- pecific structure defined by the parent device. This structure |
| 95 | + * domain-specific structure defined by the parent device. This structure |
96 | 96 | * contains the auxiliary_device and any associated shared data/callbacks |
97 | 97 | * needed to establish the connection with the parent. |
98 | 98 | * |
@@ -335,35 +335,6 @@ int __auxiliary_device_add(struct auxiliary_device *auxdev, const char *modname) |
335 | 335 | } |
336 | 336 | EXPORT_SYMBOL_GPL(__auxiliary_device_add); |
337 | 337 |
|
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 | | - |
367 | 338 | /** |
368 | 339 | * __auxiliary_driver_register - register a driver for auxiliary bus devices |
369 | 340 | * @auxdrv: auxiliary_driver structure |
|
0 commit comments