aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-07-29 15:06:05 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-08-26 04:51:29 -0400
commit11f08ca8113d237d4cc732b4f091271c3fd0fc62 (patch)
tree7f8da28c7d62dcbe45c5cab72b1262a4cef43944 /drivers/scsi/ufs
parent6fae39003811e11f10481f43f13ff611ad18c831 (diff)
[SCSI] ufs: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Santosh Y <santoshsy@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/ufs')
-rw-r--r--drivers/scsi/ufs/ufshcd-pltfrm.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c
index 880d19fe2b06..5e4623225422 100644
--- a/drivers/scsi/ufs/ufshcd-pltfrm.c
+++ b/drivers/scsi/ufs/ufshcd-pltfrm.c
@@ -137,12 +137,6 @@ static int ufshcd_pltfrm_probe(struct platform_device *pdev)
137 struct device *dev = &pdev->dev; 137 struct device *dev = &pdev->dev;
138 138
139 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 139 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
140 if (!mem_res) {
141 dev_err(dev, "Memory resource not available\n");
142 err = -ENODEV;
143 goto out;
144 }
145
146 mmio_base = devm_ioremap_resource(dev, mem_res); 140 mmio_base = devm_ioremap_resource(dev, mem_res);
147 if (IS_ERR(mmio_base)) { 141 if (IS_ERR(mmio_base)) {
148 err = PTR_ERR(mmio_base); 142 err = PTR_ERR(mmio_base);