From patchwork Fri Nov 15 08:47:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 3187241 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D3B3BC045B for ; Fri, 15 Nov 2013 08:49:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F0C16208CE for ; Fri, 15 Nov 2013 08:49:28 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0DEB2208C4 for ; Fri, 15 Nov 2013 08:49:28 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VhF5P-0006Mp-Ar; Fri, 15 Nov 2013 08:49:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VhF5J-0001ZP-18; Fri, 15 Nov 2013 08:49:01 +0000 Received: from mail-wg0-x231.google.com ([2a00:1450:400c:c00::231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VhF51-0001Ui-2B for linux-arm-kernel@lists.infradead.org; Fri, 15 Nov 2013 08:48:44 +0000 Received: by mail-wg0-f49.google.com with SMTP id x13so3168485wgg.4 for ; Fri, 15 Nov 2013 00:48:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DVaUl0Aojq8SIIV5p1Wvf/jn418qltTd9eURw6+vTS8=; b=TqWfmReYhczw45qMjvqQlhUh6J+1H80ePayCFGR4M5Ank+PXP+QSAL/VUMx+sHuQ+m gb8m1reVlOwblrYmrIxiokN7FfMK3d9QGKJDlpDuIMRVApRBzG5DMiOsGUGnmpD8OhJB Ax99BnBZ9nu7r2uytMiCq09uMFbAqcusHCdjI+yWFYX+/rJl1q+r4umpHOvED6pKml7+ gZjQ/6AnteWdU6Zsd41vlAHc7EvIjQ3VF+nrF3mnrKVrl/Jzz2IyfEN/AS0MS80KrCVi V2yVcFgj1aEXy8l1J3rJmwsyrvrQF+kS/tX+bye7Ah+MYwS1nawoq5f8FMbWa+bMU6td fRSA== X-Received: by 10.180.160.212 with SMTP id xm20mr6331364wib.23.1384505298875; Fri, 15 Nov 2013 00:48:18 -0800 (PST) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id qc10sm2856890wic.9.2013.11.15.00.48.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Nov 2013 00:48:18 -0800 (PST) From: Dmitry Eremin-Solenikov To: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Subject: [PATCH 1/9] ARM: sa1100 collie: use gpio-charger instead of pda-power Date: Fri, 15 Nov 2013 12:47:52 +0400 Message-Id: <1384505280-25389-2-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1384505280-25389-1-git-send-email-dbaryshkov@gmail.com> References: <1384505280-25389-1-git-send-email-dbaryshkov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131115_034843_228640_EA994FFD X-CRM114-Status: GOOD ( 14.67 ) X-Spam-Score: 0.5 (/) Cc: Linus Walleij , Russell King , Dmitry Artamonow X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, SUSPICIOUS_RECIPS, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use gpio-charger driver instead of pda-power: it automatically cares about used gpio and since collie does not differentiate between usb and ac chargers, pda-power is an overkill for it. As a bonus this allows us to remove gpio_to_irq calls from machine init call - it is fragile. These gpio_to_irq calls will fail if gpios are registered later, via device driver mechanisms. Signed-off-by: Dmitry Eremin-Solenikov --- arch/arm/mach-sa1100/collie.c | 55 ++++++------------------------------------- 1 file changed, 7 insertions(+), 48 deletions(-) diff --git a/arch/arm/mach-sa1100/collie.c b/arch/arm/mach-sa1100/collie.c index 7fb96eb..f902b8e 100644 --- a/arch/arm/mach-sa1100/collie.c +++ b/arch/arm/mach-sa1100/collie.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include