Skip to content
Commit 8fd8f942 authored by Marek Behún's avatar Marek Behún Committed by Pavel Machek
Browse files

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: default avatarMarek Behún <kabel@kernel.org>
Tested-by: default avatarSimon Guinot <simon.guinot@sequanux.org>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 940cca1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment