.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * LED Flash class driver for the flash cell of max77693 mfd. |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * |
---|
6 | 7 | * Authors: Jacek Anaszewski <j.anaszewski@samsung.com> |
---|
7 | 8 | * 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. |
---|
12 | 9 | */ |
---|
13 | 10 | |
---|
14 | 11 | #include <linux/led-class-flash.h> |
---|
.. | .. |
---|
602 | 599 | { |
---|
603 | 600 | struct device *dev = &led->pdev->dev; |
---|
604 | 601 | 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; |
---|
606 | 603 | struct property *prop; |
---|
607 | 604 | u32 led_sources[2]; |
---|
608 | 605 | int i, ret, fled_id; |
---|