summaryrefslogtreecommitdiffstats
path: root/drivers/base/bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/bus.c')
-rw-r--r--drivers/base/bus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c
index 0a58e969f8b7..df3cac739813 100644
--- a/drivers/base/bus.c
+++ b/drivers/base/bus.c
@@ -323,8 +323,8 @@ EXPORT_SYMBOL_GPL(bus_for_each_dev);
323 * return to the caller and not iterate over any more devices. 323 * return to the caller and not iterate over any more devices.
324 */ 324 */
325struct device *bus_find_device(struct bus_type *bus, 325struct device *bus_find_device(struct bus_type *bus,
326 struct device *start, void *data, 326 struct device *start, const void *data,
327 int (*match)(struct device *dev, void *data)) 327 int (*match)(struct device *dev, const void *data))
328{ 328{
329 struct klist_iter i; 329 struct klist_iter i;
330 struct device *dev; 330 struct device *dev;
@@ -342,7 +342,7 @@ struct device *bus_find_device(struct bus_type *bus,
342} 342}
343EXPORT_SYMBOL_GPL(bus_find_device); 343EXPORT_SYMBOL_GPL(bus_find_device);
344 344
345static int match_name(struct device *dev, void *data) 345static int match_name(struct device *dev, const void *data)
346{ 346{
347 const char *name = data; 347 const char *name = data;
348 348