From patchwork Tue Dec 3 14:11:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 21961 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D332A202DA for ; Tue, 3 Dec 2013 14:12:04 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id e14sf46517974iej.8 for ; Tue, 03 Dec 2013 06:12:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=zReeWHnMxc//1r4C3TbHml+VoDXkea3hVRi1qPJudaw=; b=e04j3Cb5G04mxHN7wCNJsPqWzJgBzzmXULlLIK1PIqIKWkTJwnmBT5EYoU0UlPm+af RCnkKZQLB4E7Af8M1SRhKYDlk6dSttdf/MBjZlMr6sZx9XqUWF1XIKkWv/Ufd/t5ImTK LMm7lRORJOQNqZTpUTbHKNnP86nkh0o2HHet+xpJX2if6VZUtAnJZ4gJWpk0/w9aChhb eg1rRumBwe8CcvWmbJhSv8d4ZT6cgoKmHGEXyBdRnKroRjOQe1l0aW28pXYtECOj4N6z WHTnrz7ewunL71/TU7rcV+9KmYXilHeQhG9fbdsrpzqjekWiJnavhVFeIviwWJoh3qdt 3C7A== X-Gm-Message-State: ALoCoQmXH6oKIXtiDECUFsfsgUaa0fzfwTASuzOulagpQM56S/BFXphlQ/91QrsjYmzgKDTdH3Bk X-Received: by 10.50.41.101 with SMTP id e5mr1084812igl.0.1386079923707; Tue, 03 Dec 2013 06:12:03 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.41 with SMTP id cz9ls4700566qeb.57.gmail; Tue, 03 Dec 2013 06:12:03 -0800 (PST) X-Received: by 10.58.156.106 with SMTP id wd10mr56472790veb.7.1386079923574; Tue, 03 Dec 2013 06:12:03 -0800 (PST) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id dp7si31373602ved.111.2013.12.03.06.12.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 06:12:03 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id if17so9959262vcb.11 for ; Tue, 03 Dec 2013 06:12:03 -0800 (PST) X-Received: by 10.58.180.227 with SMTP id dr3mr1600801vec.36.1386079923371; Tue, 03 Dec 2013 06:12:03 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp211026vcz; Tue, 3 Dec 2013 06:12:03 -0800 (PST) X-Received: by 10.152.183.230 with SMTP id ep6mr120142lac.86.1386079922507; Tue, 03 Dec 2013 06:12:02 -0800 (PST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by mx.google.com with ESMTPS id g3si17486258lbd.4.2013.12.03.06.12.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 06:12:02 -0800 (PST) Received-SPF: neutral (google.com: 209.85.215.53 is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id ea20so8993044lab.40 for ; Tue, 03 Dec 2013 06:12:01 -0800 (PST) X-Received: by 10.112.157.194 with SMTP id wo2mr264792lbb.78.1386079921767; Tue, 03 Dec 2013 06:12:01 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id ld10sm16741539lab.8.2013.12.03.06.11.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Dec 2013 06:12:00 -0800 (PST) From: Linus Walleij To: Samuel Ortiz , Lee Jones , linux-kernel@vger.kernel.org Cc: Linus Walleij Subject: [PATCH] MFD: ab8500: use irqdomain to map interrupts Date: Tue, 3 Dec 2013 15:11:54 +0100 Message-Id: <1386079914-23807-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.8.3.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , All subdrivers use the irqdomain to demux AB8500 IRQs but here in the hierarchical path we find a leftover instance using the hard-coded IRQ base. Convert it to use irqdomain with a oneliner. Cc: Lee Jones Signed-off-by: Linus Walleij --- drivers/mfd/ab8500-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index b6c2cdc76091..7134a4060881 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c @@ -491,7 +491,7 @@ static int ab8500_handle_hierarchical_line(struct ab8500 *ab8500, if (line == AB8540_INT_GPIO43F || line == AB8540_INT_GPIO44F) line += 1; - handle_nested_irq(ab8500->irq_base + line); + handle_nested_irq(irq_create_mapping(ab8500->domain, line)); } return 0;