From: Herbert Xu Date: Tue, 23 Dec 2014 05:40:19 +0000 (+1100) Subject: hwrng: core - Do not register device opportunistically X-Git-Tag: fixes-v4.0-rc1~106^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac3a497f13e42a99ed6fe188ebf2dcc39eb7ac20;p=pandora-kernel.git hwrng: core - Do not register device opportunistically Currently we only register the device when a valid RNG is added. However the way it's done is buggy because we test whether there is a current RNG to determine whether we need to register. As the current RNG may be missing due to a reinitialisation error this can lead to a reregistration of the device. As the device already has to handle a NULL current RNG anyway, let's just register the device always and remove the complexity. Signed-off-by: Herbert Xu --- Reading git-diff-tree failed