projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8897b2b
)
drivers/misc: don't check resource with devm_ioremap_resource
author
Wolfram Sang
<wsa@the-dreams.de>
Sun, 12 May 2013 13:19:49 +0000
(15:19 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Sat, 18 May 2013 09:55:54 +0000
(11:55 +0200)
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>
drivers/misc/atmel-ssc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/misc/atmel-ssc.c
b/drivers/misc/atmel-ssc.c
index c09c28f92055b156245305da692e1c98582839cc..1abd5ad599251cc655672f656c2718bf65c49aa2 100644
(file)
--- a/
drivers/misc/atmel-ssc.c
+++ b/
drivers/misc/atmel-ssc.c
@@
-154,11
+154,6
@@
static int ssc_probe(struct platform_device *pdev)
ssc->pdata = (struct atmel_ssc_platform_data *)plat_dat;
regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!regs) {
- dev_dbg(&pdev->dev, "no mmio resource defined\n");
- return -ENXIO;
- }
-
ssc->regs = devm_ioremap_resource(&pdev->dev, regs);
if (IS_ERR(ssc->regs))
return PTR_ERR(ssc->regs);