Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758765AbYLKWOl (ORCPT ); Thu, 11 Dec 2008 17:14:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757016AbYLKWNu (ORCPT ); Thu, 11 Dec 2008 17:13:50 -0500 Received: from mx1.redhat.com ([66.187.233.31]:32832 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756853AbYLKWNt (ORCPT ); Thu, 11 Dec 2008 17:13:49 -0500 From: Adam Jackson To: linux-kernel@vger.kernel.org Cc: Peter Jones , Adam Jackson Subject: [PATCH] x86: Don't print error for lack of i8042 chip Date: Thu, 11 Dec 2008 17:13:44 -0500 Message-Id: <1229033625-30825-3-git-send-email-ajax@redhat.com> In-Reply-To: <1229033625-30825-2-git-send-email-ajax@redhat.com> References: <1229033625-30825-1-git-send-email-ajax@redhat.com> <1229033625-30825-2-git-send-email-ajax@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1105 Lines: 35 From: Peter Jones Some systems, such as EFI-based Apple systems, won't necessarily have an i8042 to initialize. We shouldn't be printing an error message in this case, since not detecting the chip is the correct behavior. Signed-off-by: Adam Jackson --- drivers/input/serio/i8042.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index 170f71e..4f3e632 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c @@ -701,10 +701,8 @@ static int __devinit i8042_check_aux(void) static int i8042_controller_check(void) { - if (i8042_flush() == I8042_BUFFER_SIZE) { - printk(KERN_ERR "i8042.c: No controller found.\n"); + if (i8042_flush() == I8042_BUFFER_SIZE) return -ENODEV; - } return 0; } -- 1.6.0.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/