summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pccard_nbk.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-02-21 06:52:20 +0000
committerimp <imp@FreeBSD.org>2000-02-21 06:52:20 +0000
commit9ed91a0fa5b0949079e616ed4e74598919e2131a (patch)
tree72097b447d58dd9b7a83d38242c981dab0447c47 /sys/pccard/pccard_nbk.c
parentacfee30552914b1fc92f65d06fd0b5f151bb3302 (diff)
downloadFreeBSD-src-9ed91a0fa5b0949079e616ed4e74598919e2131a.zip
FreeBSD-src-9ed91a0fa5b0949079e616ed4e74598919e2131a.tar.gz
/tmp/msg
Diffstat (limited to 'sys/pccard/pccard_nbk.c')
-rw-r--r--sys/pccard/pccard_nbk.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c
index 28da49f..3306c02 100644
--- a/sys/pccard/pccard_nbk.c
+++ b/sys/pccard/pccard_nbk.c
@@ -167,7 +167,7 @@ pccard_set_resource(device_t dev, device_t child, int type, int rid,
return EINVAL;
resource_list_add(rl, type, rid, start, start + count - 1, count);
-
+
return 0;
}
@@ -212,7 +212,8 @@ pccard_alloc_resource(device_t bus, device_t child, int type, int *rid,
struct pccard_devinfo *devi = device_get_ivars(child);
struct resource_list *rl = &devi->resources;
struct resource_list_entry *rle;
-
+ struct resource *res;
+
if (!passthrough && !isdefault) {
rle = resource_list_find(rl, type, *rid);
if (!rle) {
@@ -242,8 +243,9 @@ pccard_alloc_resource(device_t bus, device_t child, int type, int *rid,
}
}
- return resource_list_alloc(rl, bus, child, type, rid,
- start, end, count, flags);
+ res = resource_list_alloc(rl, bus, child, type, rid, start, end,
+ count, flags);
+ return res;
}
static int
OpenPOWER on IntegriCloud