[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1544177406-24752-1-git-send-email-krzk@kernel.org>
Date: Fri, 7 Dec 2018 11:10:06 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Rafał Miłecki <rafal@...ecki.pl>,
Jacek Anaszewski <jacek.anaszewski@...il.com>,
Pavel Machek <pavel@....cz>, linux-leds@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Krzysztof Kozlowski <krzk@...nel.org>
Subject: [PATCH] leds: gpio: Drop unneeded manual of_node assignment
This reverts the main change of commit bff23714bc36 ("leds: leds-gpio:
Set of_node for created LED devices") because of_node assignment is
handled by core since commit 7ea79ae86c28 ("leds: gpio: use OF variant
of LED registering function"). Basically the code was overwriting the
of_node with same value.
No functional change expected.
Signed-off-by: Krzysztof Kozlowski <krzk@...nel.org>
---
drivers/leds/leds-gpio.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index 45e012093865..998f2ff6914d 100644
--- a/drivers/leds/leds-gpio.c
+++ b/drivers/leds/leds-gpio.c
@@ -190,7 +190,6 @@ static struct gpio_leds_priv *gpio_leds_create(struct platform_device *pdev)
fwnode_handle_put(child);
return ERR_PTR(ret);
}
- led_dat->cdev.dev->of_node = np;
priv->num_leds++;
}
--
2.7.4
Powered by blists - more mailing lists