mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 01:31:44 +00:00
cbcdc1debd
The PNP framework doesn't export "pnp_bus_type", which is an unfortunate exception to the policy followed by pretty much every other bus. I noticed this when I had to find a device in order to provide its platform_data. Note that per advice from Arjan, the "export" scope has been been minimized to avoid the hundred-plus bytes needed to support access from modules. In this case, the symbol is only needed by statically linked kernel code that lives outside the drivers/pnp directory. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Cc: Adam Belay <ambx1@neo.rr.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
13 lines
495 B
C
13 lines
495 B
C
extern spinlock_t pnp_lock;
|
|
void *pnp_alloc(long size);
|
|
int pnp_interface_attach_device(struct pnp_dev *dev);
|
|
void pnp_fixup_device(struct pnp_dev *dev);
|
|
void pnp_free_option(struct pnp_option *option);
|
|
int __pnp_add_device(struct pnp_dev *dev);
|
|
void __pnp_remove_device(struct pnp_dev *dev);
|
|
|
|
int pnp_check_port(struct pnp_dev * dev, int idx);
|
|
int pnp_check_mem(struct pnp_dev * dev, int idx);
|
|
int pnp_check_irq(struct pnp_dev * dev, int idx);
|
|
int pnp_check_dma(struct pnp_dev * dev, int idx);
|