From: Takashi Iwai Date: Mon, 2 Feb 2015 14:44:54 +0000 (+0100) Subject: misc: Add attribute groups X-Git-Tag: omap-for-v4.1/fixes-rc1~73^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd735995308b553cc3c7f6a975aa284b270c7e2c;p=pandora-kernel.git misc: Add attribute groups Add groups field to struct miscdevice for passing the attribute groups at device creation. In this way, the driver can avoid the manual call of device_create_file() after the device registration, which is basically a racy operation, in addition to the reduction of manual device_remove_file() calls. Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed