diff options
author | Christoph Hellwig <hch@lst.de> | 2015-05-22 12:12:39 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-05-22 17:36:33 +0300 |
commit | e75ec752d725b7b612c0b2db1bca50a9e53c0879 (patch) | |
tree | 94c1a00fa02774dc49bbe3d5ecefe42689d545f5 /include/linux/nvme.h | |
parent | f705f837c58ebe1ea69dfffff4dcc234e2fbc8dd (diff) | |
download | linux-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.h | 2 |
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; |