summaryrefslogtreecommitdiff
path: root/include/linux/nvme.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-05-22 12:12:39 +0300
committerJens Axboe <axboe@fb.com>2015-05-22 17:36:33 +0300
commite75ec752d725b7b612c0b2db1bca50a9e53c0879 (patch)
tree94c1a00fa02774dc49bbe3d5ecefe42689d545f5 /include/linux/nvme.h
parentf705f837c58ebe1ea69dfffff4dcc234e2fbc8dd (diff)
downloadlinux-e75ec752d725b7b612c0b2db1bca50a9e53c0879.tar.xz
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>
Diffstat (limited to 'include/linux/nvme.h')
-rw-r--r--include/linux/nvme.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 61488b2ae291..de0e49a716b8 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -74,7 +74,7 @@ struct nvme_dev {
struct blk_mq_tag_set tagset;
struct blk_mq_tag_set admin_tagset;
u32 __iomem *dbs;
- struct pci_dev *pci_dev;
+ struct device *dev;
struct dma_pool *prp_page_pool;
struct dma_pool *prp_small_pool;
int instance;