isa: Dummy isa_register_driver should return error code
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Mon, 9 May 2016 13:39:50 +0000 (09:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Jun 2016 03:47:11 +0000 (20:47 -0700)
commit5e25db870ec983be138b343a3d04c79a5c1f1703
treea07efd8ec43da7ac714774af61001e3d544adf10
parent32a5a0c047343b11f581f663a2309cf43d13466f
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 <matthew@wil.cx>
Reported-by: Sasha Levin <sasha.levin@oracle.com>
Tested-by: Ye Xiaolong
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/isa.h