Skip to content
Commit 1351cd3b authored by Heinrich Schuchardt's avatar Heinrich Schuchardt
Browse files

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: ceec977b ("rng: Provide a RNG based on the RISC-V Zkr ISA extension")
Reported-by: default avatarAndre Przywara <andre.przywara@arm.com>
Signed-off-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
parent badef4cd
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