From patchwork Sun Oct 10 17:28:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kulikov Vasiliy X-Patchwork-Id: 244511 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9AHUl6X031767 for ; Sun, 10 Oct 2010 17:30:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756175Ab0JJR2f (ORCPT ); Sun, 10 Oct 2010 13:28:35 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:38797 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755861Ab0JJR2c (ORCPT ); Sun, 10 Oct 2010 13:28:32 -0400 Received: by mail-ew0-f46.google.com with SMTP id 20so302443ewy.19 for ; Sun, 10 Oct 2010 10:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=itQcDNffjHgKc/n6C+mg+bF74KLG5InYIFNqLtNV36g=; b=N312gZAxRKP+EowgRIeAZZvweS2B5KiuYxDFijXjgWIghd/s0L4foeNvir8tOrRWQO FwpTe1gF6qQRUmkGuLXn9ZLuY1mYqAgPuYNqIQHuTAVnyyEvCJwrEYynFGEGdO1eiDXE 6SKzxxt9jNbrgaMYDp+IgIRbVHDqFTsHkIXlI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=u/qp9c+cbDI9qIH5dXqx6EY20isRwsMGeHAsYb/YNezjxcKliq89qz/BpdQgYrOT2B It/q4L/4FLCLceb/ti4NPaFDxGsn+ShppvdAqtmm7bbMUtwK7zd81GuZh68y/MbwmuAu m9dlougmOJVu+vYnXcJyp4L2mcldfowXliwJ8= Received: by 10.213.89.205 with SMTP id f13mr1242586ebm.52.1286731711226; Sun, 10 Oct 2010 10:28:31 -0700 (PDT) Received: from localhost (ppp85-140-233-164.pppoe.mtu-net.ru [85.140.233.164]) by mx.google.com with ESMTPS id z55sm9359272eeh.9.2010.10.10.10.28.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 10 Oct 2010 10:28:30 -0700 (PDT) From: Vasiliy Kulikov To: kernel-janitors@vger.kernel.org Cc: Paul Mundt , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] sh: boards/mach-x3proto: gpio: fix error handling code Date: Sun, 10 Oct 2010 21:28:27 +0400 Message-Id: <1286731708-17822-1-git-send-email-segooon@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sun, 10 Oct 2010 17:30:48 +0000 (UTC) diff --git a/arch/sh/boards/mach-x3proto/gpio.c b/arch/sh/boards/mach-x3proto/gpio.c index 9fcd7ce..594adf7 100644 --- a/arch/sh/boards/mach-x3proto/gpio.c +++ b/arch/sh/boards/mach-x3proto/gpio.c @@ -79,7 +79,7 @@ struct gpio_chip x3proto_gpio_chip = { int __init x3proto_gpio_setup(void) { - unsigned int ilsel; + int ilsel; int ret, i; ilsel = ilsel_enable(ILSEL_KEY); @@ -92,7 +92,7 @@ int __init x3proto_gpio_setup(void) for (i = 0; i < NR_BASEBOARD_GPIOS; i++) { unsigned long flags; - unsigned int irq = create_irq(); + int irq = create_irq(); if (unlikely(irq < 0)) { ret = -EINVAL;