switch: export name of device found via /proc

SVN-Revision: 35596
This commit is contained in:
Hauke Mehrtens
2013-02-14 12:36:52 +00:00
parent 60913bbac6
commit 243c582213
4 changed files with 16 additions and 1 deletions

View File

@@ -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;