commit | 15943ca73fef0d1d2fa0746b0e6a275644c9d4aa | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Sat Nov 04 08:51:07 2023 +0200 |
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Tue Jan 09 07:37:05 2024 +0100 |
tree | 5d1b7f0c0567ea34219d64b1cd76aea0b6c23d0b | |
parent | 84020d0ac8eb2f22bc81647aa8a66076d260f079 [diff] |
rng: detect RISC-V Zkr RNG device in bind method The existence of devices should be checked in the bind method and not in the probe method. Adjust the RISC-V Zkr RNG driver accordingly. Use ENOENT (and not ENODEV) to signal that the device is not available. Fixes: ceec977ba1a9 ("rng: Provide a RNG based on the RISC-V Zkr ISA extension") Reported-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>