]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: store a struct device pointer in struct nvme_dev
authorChristoph Hellwig <hch@lst.de>
Fri, 22 May 2015 09:12:39 +0000 (11:12 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:31:42 +0000 (16:31 -0700)
commit86ec7a31760223867a1fb0605a55e32ef602ea0a
treec3da5cd6f144c2dc6b95b02e0567209df571375f
parentdd52dfa6d64c1945956c99d4a9ee3373315a09e0
nvme: store a struct device pointer in struct nvme_dev

Most users want the generic device, so store that in struct nvme_dev
instead of the pci_dev.  This also happens to be a nice step towards
making some code reusable for non-PCI transports.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit e75ec752d725b7b612c0b2db1bca50a9e53c0879)

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
Conflicts:
drivers/block/nvme-core.c
drivers/block/nvme-core.c
drivers/block/nvme-scsi.c
include/linux/nvme.h