projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01901f4
)
device: fall back to simple interface status check if not provided by the device...
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 26 Jun 2014 10:17:46 +0000
(12:17 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 26 Jun 2014 10:17:46 +0000
(12:17 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
device.c
patch
|
blob
|
history
diff --git
a/device.c
b/device.c
index 7d606c6e5782108444308a6777e3f13f48ed6b45..b16f15672f50b611197b27d8d3bf6eed392ddfd8 100644
(file)
--- a/
device.c
+++ b/
device.c
@@
-262,7
+262,7
@@
void device_release(struct device_user *dep)
int device_check_state(struct device *dev)
{
if (!dev->type->check_state)
- return
0
;
+ return
simple_device_type.check_state(dev)
;
return dev->type->check_state(dev);
}