hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/pnp/isapnp/compat.c
....@@ -21,28 +21,6 @@
2121 (device >> 12) & 0x0f, (device >> 8) & 0x0f);
2222 }
2323
24
-struct pnp_card *pnp_find_card(unsigned short vendor, unsigned short device,
25
- struct pnp_card *from)
26
-{
27
- char id[8];
28
- char any[8];
29
- struct list_head *list;
30
-
31
- pnp_convert_id(id, vendor, device);
32
- pnp_convert_id(any, ISAPNP_ANY_ID, ISAPNP_ANY_ID);
33
-
34
- list = from ? from->global_list.next : pnp_cards.next;
35
-
36
- while (list != &pnp_cards) {
37
- struct pnp_card *card = global_to_pnp_card(list);
38
-
39
- if (compare_pnp_id(card->id, id) || (memcmp(id, any, 7) == 0))
40
- return card;
41
- list = list->next;
42
- }
43
- return NULL;
44
-}
45
-
4624 struct pnp_dev *pnp_find_dev(struct pnp_card *card, unsigned short vendor,
4725 unsigned short function, struct pnp_dev *from)
4826 {
....@@ -86,5 +64,4 @@
8664 return NULL;
8765 }
8866
89
-EXPORT_SYMBOL(pnp_find_card);
9067 EXPORT_SYMBOL(pnp_find_dev);