mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
driver core: make driver_detach() take a const *
driver_detach() does not modify the driver itself, so make the pointer constant. In doing so, the function driver_allows_async_probing() also needs to be changed so that the pointer type passes through to that function properly. Cc: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20240611130103.3262749-11-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -158,7 +158,7 @@ void bus_remove_driver(struct device_driver *drv);
|
||||
void device_release_driver_internal(struct device *dev, const struct device_driver *drv,
|
||||
struct device *parent);
|
||||
|
||||
void driver_detach(struct device_driver *drv);
|
||||
void driver_detach(const struct device_driver *drv);
|
||||
void driver_deferred_probe_del(struct device *dev);
|
||||
void device_set_deferred_probe_reason(const struct device *dev, struct va_format *vaf);
|
||||
static inline int driver_match_device(struct device_driver *drv,
|
||||
|
||||
Reference in New Issue
Block a user