hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/leds/leds-max77693.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * LED Flash class driver for the flash cell of max77693 mfd.
34 *
....@@ -5,10 +6,6 @@
56 *
67 * Authors: Jacek Anaszewski <j.anaszewski@samsung.com>
78 * Andrzej Hajda <a.hajda@samsung.com>
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License
11
- * version 2 as published by the Free Software Foundation.
129 */
1310
1411 #include <linux/led-class-flash.h>
....@@ -602,7 +599,7 @@
602599 {
603600 struct device *dev = &led->pdev->dev;
604601 struct max77693_sub_led *sub_leds = led->sub_leds;
605
- struct device_node *node = dev->of_node, *child_node;
602
+ struct device_node *node = dev_of_node(dev), *child_node;
606603 struct property *prop;
607604 u32 led_sources[2];
608605 int i, ret, fled_id;