summaryrefslogtreecommitdiffhomepage
path: root/device.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-05 16:08:07 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-05 16:08:07 +0200
commit5bf6467af8d59d0b0794413204ad385367221e22 (patch)
tree94ee8f75a1724fc15842e83acc378afb0a32140d /device.c
parent6d5ca67a135a552a4232bc21705d33a567d00acc (diff)
rename check_device_state to device_check_state
Diffstat (limited to 'device.c')
-rw-r--r--device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/device.c b/device.c
index 23befa3..f9ad25a 100644
--- a/device.c
+++ b/device.c
@@ -167,7 +167,7 @@ void device_release(struct device_user *dep)
device_broadcast_event(dev, DEV_EVENT_DOWN);
}
-int check_device_state(struct device *dev)
+int device_check_state(struct device *dev)
{
if (!dev->type->check_state)
return 0;
@@ -203,7 +203,7 @@ int device_init(struct device *dev, const struct device_type *type, const char *
if (ret < 0)
return ret;
- check_device_state(dev);
+ device_check_state(dev);
return 0;
}