]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: fix drvdata setup for the nvme device
authorChristoph Hellwig <hch@lst.de>
Tue, 9 Feb 2016 19:44:03 +0000 (12:44 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:58 +0000 (13:40 -0700)
commitaf319ec34c0d27c47d6737c923947cd1dc05eb17
tree5d01357f3d4be677a09a5371ca3225508be57e5b
parent7c64c1314fdb6e8b0ae2a45a07119b9c32329080
nvme: fix drvdata setup for the nvme device

Pass the right private data to device_create_with_groups from the
beginning, and remove the superflous call to dev_set_drvdata.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit f4f0f63e6f01055dfbdb7bc5e83935e1bdfa1980)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c