linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] ESIA : Dummy eisa_driver_register should return error code
@ 2016-07-18 18:45 Arvind Yadav
  2016-07-19  4:31 ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Arvind Yadav @ 2016-07-18 18:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: Arvind Yadav

The inline eisa_driver_register stub simply allows compilation on
systems with CONFIG_EISA disabled. the dummy eisa_driver_register
does not register an *_eisa_driver at all. The inline
eisa_driver_register should return to indicate lack of support
when attempting to register an *_eisa_driver on such a system with
CONFIG_EISA disabled.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 include/linux/eisa.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/linux/eisa.h b/include/linux/eisa.h
index 6925249..cbfc684 100644
--- a/include/linux/eisa.h
+++ b/include/linux/eisa.h
@@ -70,7 +70,10 @@ 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 int eisa_driver_register(struct eisa_driver *edrv)
+{
+	return -ENODEV;
+}
 static inline void eisa_driver_unregister (struct eisa_driver *edrv) { }
 
 #endif /* !CONFIG_EISA */
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-19 15:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-18 18:45 [PATCH v1] ESIA : Dummy eisa_driver_register should return error code Arvind Yadav
2016-07-19  4:31 ` Christoph Hellwig
2016-07-19 15:50   ` arvind Yadav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).