From c1b3cab4e1916f49e1f9e1868c698bf391029684 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 29 Jul 2011 19:25:01 +0200 Subject: [PATCH] s/cleanup_device/device_cleanup/ --- device.c | 4 ++-- device.h | 2 +- vlan.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/device.c b/device.c index 61b50bc..a71d908 100644 --- a/device.c +++ b/device.c @@ -98,7 +98,7 @@ static void __init dev_init(void) static void free_simple_device(struct device *dev) { - cleanup_device(dev); + device_cleanup(dev); free(dev); } @@ -223,7 +223,7 @@ struct device *get_device(const char *name, bool create) return dev; } -void cleanup_device(struct device *dev) +void device_cleanup(struct device *dev) { struct device_user *dep, *tmp; diff --git a/device.h b/device.h index dd7e114..33278c9 100644 --- a/device.h +++ b/device.h @@ -131,7 +131,7 @@ struct device *device_create(struct blob_attr *attr, struct uci_section *s); void init_virtual_device(struct device *dev, const struct device_type *type, const char *name); int init_device(struct device *iface, const struct device_type *type, const char *ifname); -void cleanup_device(struct device *iface); +void device_cleanup(struct device *iface); struct device *get_device(const char *name, bool create); void device_add_user(struct device_user *dep, struct device *iface); void device_remove_user(struct device_user *dep); diff --git a/vlan.c b/vlan.c index ce9d2d7..88604d3 100644 --- a/vlan.c +++ b/vlan.c @@ -19,7 +19,7 @@ static void free_vlan_if(struct device *iface) vldev = container_of(iface, struct vlan_device, dev); device_remove_user(&vldev->dep); - cleanup_device(&vldev->dev); + device_cleanup(&vldev->dev); free(vldev); } -- 2.30.2