summaryrefslogtreecommitdiffstats
path: root/drivers/misc/atmel-ssc.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-05-12 15:19:49 +0200
committerWolfram Sang <wsa@the-dreams.de>2013-05-18 11:55:54 +0200
commit26a39bfca6c4eb32066a5982011c975286872b11 (patch)
treefc0015b346dfc981cb2b0af7826a95a6d4b0cb79 /drivers/misc/atmel-ssc.c
parent8897b2bfd2af79f8349754d006a700eef126686d (diff)
downloadblackbird-op-linux-26a39bfca6c4eb32066a5982011c975286872b11.tar.gz
blackbird-op-linux-26a39bfca6c4eb32066a5982011c975286872b11.zip
drivers/misc: 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>
Diffstat (limited to 'drivers/misc/atmel-ssc.c')
-rw-r--r--drivers/misc/atmel-ssc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c
index c09c28f92055..1abd5ad59925 100644
--- 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);
OpenPOWER on IntegriCloud