]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
virtio-blk: modernize sysfs attribute creation
authorHannes Reinecke <hare@suse.de>
Fri, 28 Sep 2018 06:17:23 +0000 (08:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Sep 2018 14:30:33 +0000 (08:30 -0600)
commite982c4d0a29b1d61fbe7716a8dcf8984936d6730
tree9dc5e53a438c59ed81466f1a5936ed9366255ff6
parent98af4d4df889dcea3bc0ce6b8a04759658ba8826
virtio-blk: modernize sysfs attribute creation

Use new-style DEVICE_ATTR_RO/DEVICE_ATTR_RW to create the sysfs attributes
and register the disk with default sysfs attribute groups.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/virtio_blk.c