projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
switch: export name of device found via /proc
[openwrt/openwrt.git]
/
package
/
switch
/
src
/
switch-adm.c
diff --git
a/package/switch/src/switch-adm.c
b/package/switch/src/switch-adm.c
index 2d0fcc35abf28f0aaee9d7cffe41f7baec78968e..8c0ddc6c9ac0180008c0d9dbf49f00f867b3fbe0 100644
(file)
--- a/
package/switch/src/switch-adm.c
+++ b/
package/switch/src/switch-adm.c
@@
-578,6
+578,7
@@
static int __init adm_init(void)
port_handlers: port,
vlan_handlers: vlan,
};
+ snprintf(driver.dev_name, SWITCH_NAME_BUFSZ, DRIVER_NAME);
if (!detect_adm())
return -ENODEV;