Changing the device coherent dma mask to the value that currently set
has no effect.

Signed-off-by: Akinobu Mita <m...@fixstars.com>
Cc: Vinayak Holikatti <vinholika...@gmail.com>
Cc: Santosh Y <santos...@gmail.com>
Cc: "James E.J. Bottomley" <jbottom...@parallels.com>
Cc: linux-scsi@vger.kernel.org
---
 drivers/scsi/ufs/ufshcd-pltfrm.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c
index 0014e28..969c9bc 100644
--- a/drivers/scsi/ufs/ufshcd-pltfrm.c
+++ b/drivers/scsi/ufs/ufshcd-pltfrm.c
@@ -100,7 +100,6 @@ static int ufshcd_pltfrm_probe(struct platform_device *pdev)
        struct resource *irq_res;
        resource_size_t mem_size;
        int err;
-       struct device *dev = &pdev->dev;
 
        mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        if (!mem_res) {
@@ -132,12 +131,6 @@ static int ufshcd_pltfrm_probe(struct platform_device 
*pdev)
                goto out_iounmap;
        }
 
-       err = dma_set_coherent_mask(dev, dev->coherent_dma_mask);
-       if (err) {
-               dev_err(&pdev->dev, "set dma mask failed\n");
-               goto out_iounmap;
-       }
-
        err = ufshcd_init(&pdev->dev, &hba, mmio_base, irq_res->start);
        if (err) {
                dev_err(&pdev->dev, "Intialization failed\n");
-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to