diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-11 15:01:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-13 16:43:53 +0200 |
commit | 33ebea9bc0a36f62590d37d0a3c859759181573e (patch) | |
tree | 01618307dd77ac99844d453765e841d5650d91d7 /drivers/base/dd.c | |
parent | 0725e8f9c442650924271a35017e6cce4315f3f1 (diff) |
driver core: make device_release_driver_internal() take a const *
Change device_release_driver_internal() to take a const struct
device_driver * as it is not modifying it at all.
Cc: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20240611130103.3262749-10-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/dd.c')
-rw-r--r-- | drivers/base/dd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 83d352394fdf..c24eca917d41 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -1284,7 +1284,7 @@ static void __device_release_driver(struct device *dev, struct device *parent) } void device_release_driver_internal(struct device *dev, - struct device_driver *drv, + const struct device_driver *drv, struct device *parent) { __device_driver_lock(dev, parent); |