From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030549AbXBOSyi (ORCPT ); Thu, 15 Feb 2007 13:54:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030550AbXBOSyi (ORCPT ); Thu, 15 Feb 2007 13:54:38 -0500 Received: from mail.gmx.net ([213.165.64.20]:57559 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1030549AbXBOSyh (ORCPT ); Thu, 15 Feb 2007 13:54:37 -0500 X-Provags-ID: V01U2FsdGVkX18/FYZdhqM/5XSj3jURXKZB9jy4nl0HRbWDqsaFZ9 A05g== From: Helge Deller To: "Cyrill V. Gorcunov" Subject: Re: [PATCH] HIL: fix improper call of release_region Date: Thu, 15 Feb 2007 19:54:33 +0100 User-Agent: KMail/1.9.6 Cc: linux-kernel-list , Andrew Morton References: <20070215175031.GA12012@cvg> In-Reply-To: <20070215175031.GA12012@cvg> X-Face: *4/{KL3=jWs!v\UO#3e7~Vb1~CL@oP'~|*/M$!9`tb2[;fY@)WscF2iV7`,a$141g'o,=?utf-8?q?7X=0A=09=3FBt1Wb=3AL7K6z-?= X-Y-GMX-Trusted: 0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi Cyrill, please include the "err1" label as well inside the #if / #endif clause. err1 is used only when CONFIG_HP300 is defined and in the parisc-case you currently get an unused label warning... Helge On Thursday 15 February 2007, Cyrill V. Gorcunov wrote: > Thist patch prevents from improper call of release_region > if the code has been compiled without CONFIG_HP300 support. > > Signed-off-by: Cyrill V. Gorcunov > > --- > > drivers/input/keyboard/hilkbd.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/drivers/input/keyboard/hilkbd.c b/drivers/input/keyboard/hilkbd.c > index 255a6ec..c3c0da3 100644 > --- a/drivers/input/keyboard/hilkbd.c > +++ b/drivers/input/keyboard/hilkbd.c > @@ -294,7 +294,9 @@ err3: > disable_irq(HIL_IRQ); > free_irq(HIL_IRQ, hil_dev.dev_id); > err2: > +#if defined(CONFIG_HP300) > release_region(HILBASE + HIL_DATA, 2); > +#endif > err1: > input_free_device(hil_dev.dev); > hil_dev.dev = NULL; >