X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Flinux%2Feisa.h;h=fe806b6f030dfb2d7583751cc33d96f36a8b7d90;hb=b5f0adbcc4f16e378882d8f68fe3111df04911be;hp=1ff7c1392525884b0f7ee005ae21ff822b01ae56;hpb=0cd43f83d381c4246a08cd775834833d6fd64805;p=powerpc.git diff --git a/include/linux/eisa.h b/include/linux/eisa.h index 1ff7c13925..fe806b6f03 100644 --- a/include/linux/eisa.h +++ b/include/linux/eisa.h @@ -61,10 +61,20 @@ struct eisa_driver { #define to_eisa_driver(drv) container_of(drv,struct eisa_driver, driver) +/* These external functions are only available when EISA support is enabled. */ +#ifdef CONFIG_EISA + extern struct bus_type eisa_bus_type; int eisa_driver_register (struct eisa_driver *edrv); void eisa_driver_unregister (struct eisa_driver *edrv); +#else /* !CONFIG_EISA */ + +static inline int eisa_driver_register (struct eisa_driver *edrv) { return 0; } +static inline void eisa_driver_unregister (struct eisa_driver *edrv) { } + +#endif /* !CONFIG_EISA */ + /* Mimics pci.h... */ static inline void *eisa_get_drvdata (struct eisa_device *edev) {