lkml.org 
[lkml]   [2010]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/5] input: i8042 - add runtime check in x86's i8042_platform_init
On Fri, 2 Jul 2010, feng.tang@intel.com wrote:

> From: Feng Tang <feng.tang@intel.com>
>
> Then it will first check x86_platforms's i8042 detection result,
> then go on with normal probe.
>
> Cc: Dmitry Torokhov <dtor@mail.ru>
> Signed-off-by: Feng Tang <feng.tang@intel.com>
> ---
> drivers/input/serio/i8042-x86ia64io.h | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
> index 6168469..2e14fc5 100644
> --- a/drivers/input/serio/i8042-x86ia64io.h
> +++ b/drivers/input/serio/i8042-x86ia64io.h
> @@ -840,6 +840,10 @@ static int __init i8042_platform_init(void)
> {
> int retval;
>
> + /* Just return if pre-detection shows no i8042 controller exist */
> + if (!x86_platform.i8042_detect())
> + return -ENODEV;

That's going to break IA64 :(

Thanks,

tglx


\
 
 \ /
  Last update: 2010-07-02 22:57    [W:0.098 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site