]> git.baikalelectronics.ru Git - kernel.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)
committerJens Axboe <axboe@fb.com>
Tue, 9 Feb 2016 19:44:03 +0000 (12:44 -0700)
commit0ccb66c7a5a4cd0badc040648dd625a67b0fa12b
tree546fde189f2a37476988845d4d131d34753b070d
parent14552349391bad6c289d5e7e60b311acad34c842
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>
drivers/nvme/host/core.c