char: xilinx_hwicap: Modernize driver probe
authorRob Herring <robh@kernel.org>
Fri, 6 Oct 2023 21:42:28 +0000 (16:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2023 08:01:34 +0000 (10:01 +0200)
commit67237183219351e53e0cf2486ad9ea00db99cd5a
tree66751066159e27bb75619115644716d3ad3af96b
parent066eaa69b05b92efd25bc2fe9964d68122c6aa2b
char: xilinx_hwicap: Modernize driver probe

Rework Xilinx hwicap driver probe to use current best practices using
devres APIs, device_get_match_data(), and typed firmware property accessors.

There's no longer any non-DT probing, so CONFIG_OF ifdefs can be dropped.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231006214228.337064-1-robh@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/xilinx_hwicap/xilinx_hwicap.c