From: Dmitry Torokhov Date: Fri, 6 Jun 2008 05:34:00 +0000 (-0400) Subject: Input: serio - mark serio_register_driver() __must_check X-Git-Tag: v2.6.27-rc1~25^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a822bea7962b500b0bcab41bf3500f7c40ae56b5;p=linux-2.6-omap-h63xx.git Input: serio - mark serio_register_driver() __must_check Also remove extra declaration of serio_register_driver(). Signed-off-by: Dmitry Torokhov --- diff --git a/include/linux/serio.h b/include/linux/serio.h index e72716cca57..25641d9e0ea 100644 --- a/include/linux/serio.h +++ b/include/linux/serio.h @@ -87,11 +87,10 @@ void serio_unregister_port(struct serio *serio); void serio_unregister_child_port(struct serio *serio); int __serio_register_driver(struct serio_driver *drv, struct module *owner, const char *mod_name); -static inline int serio_register_driver(struct serio_driver *drv) +static inline int __must_check serio_register_driver(struct serio_driver *drv) { return __serio_register_driver(drv, THIS_MODULE, KBUILD_MODNAME); } -int serio_register_driver(struct serio_driver *drv); void serio_unregister_driver(struct serio_driver *drv); static inline int serio_write(struct serio *serio, unsigned char data)