projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fae390
)
[SCSI] ufs: don't check resource with devm_ioremap_resource
author
Wolfram Sang
<
[email protected]
>
Mon, 29 Jul 2013 19:06:05 +0000
(
00:36
+0530)
committer
James Bottomley
<
[email protected]
>
Mon, 26 Aug 2013 08:51:29 +0000
(12:51 +0400)
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.
Signed-off-by: Wolfram Sang <
[email protected]
>
Signed-off-by: Santosh Y <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/ufs/ufshcd-pltfrm.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ufs/ufshcd-pltfrm.c
b/drivers/scsi/ufs/ufshcd-pltfrm.c
index 880d19fe2b06a91d31692fe5cb1f9f93f37e7854..5e462322542269b7aa424c20a10b4a803acf7d0d 100644
(file)
--- 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)
struct device *dev = &pdev->dev;
mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!mem_res) {
- dev_err(dev, "Memory resource not available\n");
- err = -ENODEV;
- goto out;
- }
-
mmio_base = devm_ioremap_resource(dev, mem_res);
if (IS_ERR(mmio_base)) {
err = PTR_ERR(mmio_base);