summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-05-05 11:05:51 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-05-05 11:05:51 +0200
commitf8327af20c1c2988b0d9909f403780e31cc6b59e (patch)
tree80eb52cc1160e577646e136ad9e3e4638aac5559 /drivers/misc
parentb568687bc3c48edd814c4b4546d049d859c8cc3f (diff)
parent9f556d4b6fc71d548e5c984c416f4f1b7d599d2f (diff)
downloadbarebox-f8327af20c1c2988b0d9909f403780e31cc6b59e.tar.gz
Merge branch 'for-next/ioresource'
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/sram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
index 7ea23b7..0466a15 100644
--- a/drivers/misc/sram.c
+++ b/drivers/misc/sram.c
@@ -47,7 +47,7 @@ static int sram_probe(struct device_d *dev)
sram->cdev.name = asprintf("sram%d",
cdev_find_free_index("sram"));
- res = dev_get_resource(dev, 0);
+ res = dev_get_resource(dev, IORESOURCE_MEM, 0);
sram->cdev.size = (unsigned long)resource_size(res);
sram->cdev.ops = &memops;