OSDN Git Service

floppy: Avoid manual call of device_create_file()
authorTakashi Iwai <tiwai@suse.de>
Mon, 2 Feb 2015 16:08:45 +0000 (17:08 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 3 Feb 2015 12:00:36 +0000 (13:00 +0100)
commitb7f120b211510b80cb72c1d790d9a4531271edfa
tree24e7e82ff8cf9cde097f25fe6ebd1024bcacc0b0
parentac3dd5bd128b1d1ce2a037775766f39d06a4848a
floppy: Avoid manual call of device_create_file()

Use the static attribute groups assigned to the device instead of
calling device_create_file() after the device registration.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/block/floppy.c