Skip to content

Commit

Permalink
Fix non-ISA link error in drivers/scsi/advansys.c
Browse files Browse the repository at this point in the history
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: Matthew Wilcox <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Matthew Wilcox authored and Linus Torvalds committed Sep 17, 2007
1 parent 5e41d0d commit fa890d5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/linux/isa.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit fa890d5

Please sign in to comment.