mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
[bhnd] handle unknown port type.
Reported by: emaste
This commit is contained in:
parent
c19e9bb3b0
commit
988fa8d078
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299129
@ -251,6 +251,11 @@ bcma_get_port_count(device_t dev, device_t child, bhnd_port_type type)
|
||||
return (dinfo->corecfg->num_bridge_ports);
|
||||
case BHND_PORT_AGENT:
|
||||
return (dinfo->corecfg->num_wrapper_ports);
|
||||
default:
|
||||
device_printf(dev, "%s: unknown type (%d)\n",
|
||||
__func__,
|
||||
type);
|
||||
return (0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user