summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2015-12-11 05:27:56 +0000
committerimp <imp@FreeBSD.org>2015-12-11 05:27:56 +0000
commit77eac42e70f63160d6d267a51a880c804e5b20e7 (patch)
tree51c67d8f989abcf155937134d4d0168e42f113f9 /sys/netgraph/bluetooth
parent870ecdf4d397cee51bc3827b3430ba890ffa6de7 (diff)
downloadFreeBSD-src-77eac42e70f63160d6d267a51a880c804e5b20e7.zip
FreeBSD-src-77eac42e70f63160d6d267a51a880c804e5b20e7.tar.gz
Create a generic PCCARD_PNP_INFO from the MODULE_PNP_INFO building
block. Use it in all the PNP drivers to export either the current PNP table. For uart, create a custom table and export it using MODULE_PNP_INFO since it's the only one that matches on function number. Differential Review: https://reviews.freebsd.org/D3461
Diffstat (limited to 'sys/netgraph/bluetooth')
-rw-r--r--sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c b/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
index d7cff74..634eb54 100644
--- a/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
+++ b/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
@@ -584,14 +584,14 @@ out:
* PC Card (PCMCIA) probe routine
*/
+static struct pccard_product const bt3c_pccard_products[] = {
+ PCMCIA_CARD(3COM, 3CRWB609),
+ { NULL, }
+};
+
static int
bt3c_pccard_probe(device_t dev)
{
- static struct pccard_product const bt3c_pccard_products[] = {
- PCMCIA_CARD(3COM, 3CRWB609),
- { NULL, }
- };
-
struct pccard_product const *pp = NULL;
pp = pccard_product_lookup(dev, bt3c_pccard_products,
@@ -1222,4 +1222,4 @@ bt3c_modevent(module_t mod, int event, void *data)
DRIVER_MODULE(bt3c, pccard, bt3c_pccard_driver, bt3c_devclass, bt3c_modevent,0);
MODULE_VERSION(ng_bt3c, NG_BLUETOOTH_VERSION);
MODULE_DEPEND(ng_bt3c, netgraph, NG_ABI_VERSION, NG_ABI_VERSION,NG_ABI_VERSION);
-
+PCCARD_PNP_INFO(bt3c_pccard_products);
OpenPOWER on IntegriCloud