s390/prng: let misc_register() add the prng sysfs attributes
authorJulian Wiedmann <jwi@linux.ibm.com>
Thu, 5 Nov 2020 07:34:34 +0000 (09:34 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 20 Nov 2020 18:19:10 +0000 (19:19 +0100)
commit1e632eaa0f4b7f65a81301205ca122024991e1d3
tree9d27d154cd9d8944ebde56679dd28d4aca41dd33
parent5ec11d0966406e4857a642539c5781fe72cc6e22
s390/prng: let misc_register() add the prng sysfs attributes

Instead of creating the sysfs attributes for the prng devices by hand,
describe them in .groups and let the misdevice core handle it.

This also ensures that the attributes are available when the KOBJ_ADD
event is raised.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/crypto/prng.c