提交 b086592e 编写于 作者: K Krzysztof Kozlowski 提交者: Jacek Anaszewski

leds: gpio: Drop unneeded manual of_node assignment

This reverts the main change of commit bff23714 ("leds: leds-gpio:
Set of_node for created LED devices") because of_node assignment is
handled by core since commit 7ea79ae8 ("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: NKrzysztof Kozlowski <krzk@kernel.org>
Tested-by: NRafał Miłecki <rafal@milecki.pl>
Signed-off-by: NJacek Anaszewski <jacek.anaszewski@gmail.com>
上级 555fc5ba
......@@ -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++;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册