projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
device: prepare for adding device handlers dynamically
[project/netifd.git]
/
macvlan.c
diff --git
a/macvlan.c
b/macvlan.c
index
a0f11ae
..
ffadfd4
100644
(file)
--- a/
macvlan.c
+++ b/
macvlan.c
@@
-228,7
+228,8
@@
macvlan_reload(struct device *dev, struct blob_attr *attr)
}
static struct device *
}
static struct device *
-macvlan_create(const char *name, struct blob_attr *attr)
+macvlan_create(const char *name, struct device_type *devtype,
+ struct blob_attr *attr)
{
struct macvlan_device *mvdev;
struct device *dev = NULL;
{
struct macvlan_device *mvdev;
struct device *dev = NULL;
@@
-238,7
+239,7
@@
macvlan_create(const char *name, struct blob_attr *attr)
return NULL;
dev = &mvdev->dev;
return NULL;
dev = &mvdev->dev;
- device_init(dev,
&macvlan_device_
type, name);
+ device_init(dev,
dev
type, name);
dev->config_pending = true;
mvdev->set_state = dev->set_state;
dev->config_pending = true;
mvdev->set_state = dev->set_state;
@@
-252,7
+253,7
@@
macvlan_create(const char *name, struct blob_attr *attr)
return dev;
}
return dev;
}
-
const
struct device_type macvlan_device_type = {
+struct device_type macvlan_device_type = {
.name = "MAC VLAN",
.config_params = &macvlan_attr_list,
.create = macvlan_create,
.name = "MAC VLAN",
.config_params = &macvlan_attr_list,
.create = macvlan_create,