Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

leds: led-class: Switch to using class_find_device_by_fwnode()

In preparation to class_find_device_by_of_node() going away switch to
using class_find_device_by_fwnode().

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://patch.msgid.link/20260322-remove-device-find-by-of-node-v1-5-b72eb22a1215@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Dmitry Torokhov and committed by
Lee Jones
b6de441f b727ba25

+1 -1
+1 -1
drivers/leds/led-class.c
··· 273 273 if (!led_node) 274 274 return ERR_PTR(-ENOENT); 275 275 276 - led_dev = class_find_device_by_of_node(&leds_class, led_node); 276 + led_dev = class_find_device_by_fwnode(&leds_class, of_fwnode_handle(led_node)); 277 277 of_node_put(led_node); 278 278 279 279 return led_module_get(led_dev);