tun: Use static attribute groups for sysfs entries
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Feb 2015 13:37:34 +0000 (14:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 08:30:47 +0000 (00:30 -0800)
commitc4d33e24b650e3fc3659b8fafe3e88ead731b658
tree6591c2d3ac17fe3961bc167bbd6195fdaae79e64
parent7061b2bdd620e4dda449d4d4db69de57751ab289
tun: Use static attribute groups for sysfs entries

Instead of manual calls of device_create_file() and
device_remove_files(), assign the static attribute groups to netdev
groups array.  This simplifies the code and avoids the possible
races.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c