Re: [PATCH] driver core: fix inverted "locked" suffix of driver_match_device()

From: Danilo Krummrich

Date: Sun Feb 01 2026 - 16:34:32 EST


On Sat Jan 31, 2026 at 2:42 AM CET, Danilo Krummrich wrote:
> In the current implementation driver_match_device() expects the device
> lock to be held, while driver_match_device_locked() acquires the device
> lock.
>
> By convention it should be the other way around, hence swap the name of
> both functions.
>
> Fixes: dc23806a7c47 ("driver core: enforce device_lock for driver_match_device()")
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>

Applied to driver-core-testing, thanks!