Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa890d58 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds
Browse files

Fix non-ISA link error in drivers/scsi/advansys.c



When CONFIG_ISA is disabled, the isa_driver support will not be compiled
in.  Define stubs so that we don't get link-time errors.

Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5e41d0d6
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -22,7 +22,18 @@ struct isa_driver {

#define to_isa_driver(x) container_of((x), struct isa_driver, driver)

#ifdef CONFIG_ISA
int isa_register_driver(struct isa_driver *, unsigned int);
void isa_unregister_driver(struct isa_driver *);
#else
static inline int isa_register_driver(struct isa_driver *d, unsigned int i)
{
	return 0;
}

static inline void isa_unregister_driver(struct isa_driver *d)
{
}
#endif

#endif /* __LINUX_ISA_H */