summaryrefslogtreecommitdiffstats
path: root/common/resource.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-09-12 09:22:40 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-09-16 08:32:10 +0200
commitd5a82eb095def58f3a19127bb08ff96d799b63a5 (patch)
tree70c6c203f5ba753634616f45155a5f5602218e3d /common/resource.c
parented6e965824303255cacc1c1a195d3684caa26bce (diff)
downloadbarebox-d5a82eb095def58f3a19127bb08ff96d799b63a5.tar.gz
resource: Let request_ioport_region return an error pointer
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/resource.c')
-rw-r--r--common/resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/resource.c b/common/resource.c
index fd04f26..e4bbe15 100644
--- a/common/resource.c
+++ b/common/resource.c
@@ -146,7 +146,7 @@ struct resource *request_ioport_region(const char *name,
res = __request_region(&ioport_resource, name, start, end);
if (IS_ERR(res))
- return NULL;
+ return ERR_CAST(res);
return res;
}