aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/ufshcd-pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/ufs/ufshcd-pci.c')
-rw-r--r--drivers/scsi/ufs/ufshcd-pci.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/scsi/ufs/ufshcd-pci.c b/drivers/scsi/ufs/ufshcd-pci.c
index 8b9531204c2b..c007a7a69c28 100644
--- a/drivers/scsi/ufs/ufshcd-pci.c
+++ b/drivers/scsi/ufs/ufshcd-pci.c
@@ -135,26 +135,6 @@ static void ufshcd_pci_remove(struct pci_dev *pdev)
135} 135}
136 136
137/** 137/**
138 * ufshcd_set_dma_mask - Set dma mask based on the controller
139 * addressing capability
140 * @pdev: PCI device structure
141 *
142 * Returns 0 for success, non-zero for failure
143 */
144static int ufshcd_set_dma_mask(struct pci_dev *pdev)
145{
146 int err;
147
148 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))
149 && !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)))
150 return 0;
151 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
152 if (!err)
153 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
154 return err;
155}
156
157/**
158 * ufshcd_pci_probe - probe routine of the driver 138 * ufshcd_pci_probe - probe routine of the driver
159 * @pdev: pointer to PCI device handle 139 * @pdev: pointer to PCI device handle
160 * @id: PCI device id 140 * @id: PCI device id
@@ -184,12 +164,6 @@ ufshcd_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
184 164
185 mmio_base = pcim_iomap_table(pdev)[0]; 165 mmio_base = pcim_iomap_table(pdev)[0];
186 166
187 err = ufshcd_set_dma_mask(pdev);
188 if (err) {
189 dev_err(&pdev->dev, "set dma mask failed\n");
190 return err;
191 }
192
193 err = ufshcd_init(&pdev->dev, &hba, mmio_base, pdev->irq); 167 err = ufshcd_init(&pdev->dev, &hba, mmio_base, pdev->irq);
194 if (err) { 168 if (err) {
195 dev_err(&pdev->dev, "Initialization failed\n"); 169 dev_err(&pdev->dev, "Initialization failed\n");