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)
commit4a332e216a47d5fd7b0bb577f7ddb94831c111ec
tree751a7e70150e9950a4aa3f728fc1b5535345f1e1
parent6adaee2c76c9bff52cebd2ed9ed2cb1a0b7337a0
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