OSDN Git Service

n64cart: convert to blk_alloc_disk
authorChristoph Hellwig <hch@lst.de>
Fri, 21 May 2021 05:51:11 +0000 (07:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Jun 2021 13:42:24 +0000 (07:42 -0600)
commitf9dc931de80664eb78cbc8c85052bd0856d4aa9c
treed5bece450d79ca40ee4ea4e36f026163d2f39b72
parentb1833edc4c95d801b249159be361af6d3c3ea44d
n64cart: convert to blk_alloc_disk

Convert the n64cart driver to use the blk_alloc_disk helper to simplify
gendisk and request_queue allocation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20210521055116.1053587-22-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/n64cart.c