Re: [Xen-devel] [PATCH] xen-netfront: Use static attribute groups for sysfs entries

2015-02-05 Thread David Miller
From: Takashi Iwai Date: Wed, 4 Feb 2015 14:38:55 +0100 > 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 Applie

Re: [Xen-devel] [PATCH] xen-netfront: Use static attribute groups for sysfs entries

2015-02-04 Thread David Vrabel
On 04/02/15 13:38, Takashi Iwai wrote: > 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. Acked-by: David Vrabel David

[Xen-devel] [PATCH] xen-netfront: Use static attribute groups for sysfs entries

2015-02-04 Thread Takashi Iwai
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 --- drivers/net/xen-netfront.c | 62 -