diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2020-09-18 01:32:54 +0300 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2020-09-26 22:56:39 +0300 |
commit | 8853c95e997e0a3621bd8718bdaded81ed37bc9a (patch) | |
tree | f0bd3a4907901243e12ce8a18caf1a8d313e7f3c /drivers/leds/leds-turris-omnia.c | |
parent | 2779f4724b2ff0f296313e5987d10a6ec2c2ebd5 (diff) | |
download | linux-8853c95e997e0a3621bd8718bdaded81ed37bc9a.tar.xz |
leds: various: use dev_of_node(dev) instead of dev->of_node
The dev_of_node function should be preferred.
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Cc: Orson Zhai <orsonzhai@gmail.com>
Cc: Baolin Wang <baolin.wang7@gmail.com>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Sean Wang <sean.wang@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds/leds-turris-omnia.c')
-rw-r--r-- | drivers/leds/leds-turris-omnia.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c index bb23d8e16614..ea7da8517220 100644 --- a/drivers/leds/leds-turris-omnia.c +++ b/drivers/leds/leds-turris-omnia.c @@ -210,7 +210,7 @@ static int omnia_leds_probe(struct i2c_client *client, const struct i2c_device_id *id) { struct device *dev = &client->dev; - struct device_node *np = dev->of_node, *child; + struct device_node *np = dev_of_node(dev), *child; struct omnia_leds *leds; struct omnia_led *led; int ret, count; |