Skip to content
Commit 64ed6588 authored by Ricardo Ribalda Delgado's avatar Ricardo Ribalda Delgado Committed by Pavel Machek
Browse files

leds: core: Fix warning message when init_data



The warning message when a led is renamed due to name collition can fail
to show proper original name if init_data is used. Eg:

[    9.073996] leds-gpio a0040000.leds_0: Led (null) renamed to red_led_1 due to name collision

Fixes: bb4e9af0 ("leds: core: Add support for composing LED class device names")
Signed-off-by: default avatarRicardo Ribalda Delgado <ribalda@kernel.org>
Acked-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 4b37883a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment