mtip32xx: simplify sysfs setup
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Jun 2021 06:03:42 +0000 (08:03 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 21:34:04 +0000 (15:34 -0600)
commitd2efa81dd8ba50b800accb3ef2b73474e5af9648
tree751a7e70150e9950a4aa3f728fc1b5535345f1e1
parent440462198d9c45e48f2d8d9b18c5702d92282f46
mtip32xx: simplify sysfs setup

Pass the driver specific attributes directly to device_add_disk instead
of manually creating them after the disk registration.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210614060343.3965416-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c