Commit 5e25db87 authored by William Breathitt Gray's avatar William Breathitt Gray Committed by Greg Kroah-Hartman
Browse files

isa: Dummy isa_register_driver should return error code

The inline isa_register_driver stub simply allows compilation on systems
with CONFIG_ISA disabled; the dummy isa_register_driver does not
register an isa_driver at all. The inline isa_register_driver should
return -ENODEV to indicate lack of support when attempting to register
an isa_driver on such a system with CONFIG_ISA disabled.

Cc: Matthew Wilcox <>
Reported-by: default avatarSasha Levin <>
Tested-by: Ye Xiaolong
Signed-off-by: default avatarWilliam Breathitt Gray <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 32a5a0c0
......@@ -6,6 +6,7 @@
#define __LINUX_ISA_H
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/kernel.h>
struct isa_driver {
......@@ -28,7 +29,7 @@ void isa_unregister_driver(struct isa_driver *);
static inline int isa_register_driver(struct isa_driver *d, unsigned int i)
return 0;
return -ENODEV;
static inline void isa_unregister_driver(struct isa_driver *d)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment