]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
leds: ns2: do not guard OF match pointer with of_match_ptr
authorMarek Behún <kabel@kernel.org>
Sat, 26 Sep 2020 20:11:31 +0000 (22:11 +0200)
committerPavel Machek <pavel@ucw.cz>
Wed, 30 Sep 2020 17:22:58 +0000 (19:22 +0200)
commit8fd8f94235c2c925d80b2316e0ab2bdd00af9bae
tree1d61fa98ee865ff985f12124a9d21f1849d0b0e6
parent940cca1ab5d6c3bc1f8db0c804cf7c5e0caf1853
leds: ns2: do not guard OF match pointer with of_match_ptr

Do not match OF match pointer with of_match_ptr, so that even if
CONFIG_OF is disabled, the driver can still be bound via another method.

Move definition of of_ns2_leds_match just before ns2_led_driver
definition, since it is not needed sooner.

Signed-off-by: Marek Behún <kabel@kernel.org>
Tested-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-ns2.c