Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PNP: remove the now unused pnp_find_card() function

All user of the pnp_find_card() compat wrapper are gone, so remove
the function as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Christoph Hellwig and committed by
Rafael J. Wysocki
2ef03425 38db63ba

-33
-4
Documentation/admin-guide/pnp.rst
··· 281 281 282 282 They are as follows:: 283 283 284 - struct pnp_card *pnp_find_card(unsigned short vendor, 285 - unsigned short device, 286 - struct pnp_card *from) 287 - 288 284 struct pnp_dev *pnp_find_dev(struct pnp_card *card, 289 285 unsigned short vendor, 290 286 unsigned short function,
-23
drivers/pnp/isapnp/compat.c
··· 21 21 (device >> 12) & 0x0f, (device >> 8) & 0x0f); 22 22 } 23 23 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 - 46 24 struct pnp_dev *pnp_find_dev(struct pnp_card *card, unsigned short vendor, 47 25 unsigned short function, struct pnp_dev *from) 48 26 { ··· 64 86 return NULL; 65 87 } 66 88 67 - EXPORT_SYMBOL(pnp_find_card); 68 89 EXPORT_SYMBOL(pnp_find_dev);
-6
include/linux/isapnp.h
··· 75 75 #endif 76 76 77 77 /* compat */ 78 - struct pnp_card *pnp_find_card(unsigned short vendor, 79 - unsigned short device, 80 - struct pnp_card *from); 81 78 struct pnp_dev *pnp_find_dev(struct pnp_card *card, 82 79 unsigned short vendor, 83 80 unsigned short function, ··· 89 92 static inline unsigned char isapnp_read_byte(unsigned char idx) { return 0xff; } 90 93 static inline void isapnp_write_byte(unsigned char idx, unsigned char val) { ; } 91 94 92 - static inline struct pnp_card *pnp_find_card(unsigned short vendor, 93 - unsigned short device, 94 - struct pnp_card *from) { return NULL; } 95 95 static inline struct pnp_dev *pnp_find_dev(struct pnp_card *card, 96 96 unsigned short vendor, 97 97 unsigned short function,