From: Takashi Iwai Date: Mon, 2 Feb 2015 14:44:55 +0000 (+0100) Subject: hwrng: Avoid manual device_create_file() calls X-Git-Tag: omap-for-v4.1/fixes-rc1~73^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0daa7a0afd0fa7aad83cbde0fb341d7fbeac952c;p=pandora-kernel.git hwrng: Avoid manual device_create_file() calls Use the new group field of struct miscdevice for managing the sysfs entries instead of manually adding/removing via device_create_file() and device_remove_file(). This simplifies the code a lot and fixes the possible races. Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed