From patchwork Mon Nov 5 15:10:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12665 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 30ECE23EF8 for ; Mon, 5 Nov 2012 15:10:54 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id B753EA19A03 for ; Mon, 5 Nov 2012 15:10:53 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so7810038iej.11 for ; Mon, 05 Nov 2012 07:10:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=LPUv8D8pk0wP9vmhvzcgEudiF900xybhzyvl9c+xAL8=; b=mijVU6lR1auUVo/RAXrJ5GDNiA1aPlHr2QWWwtZDqPvTnfyZHx2UB+UCVN3RMKgJvJ +Un57fpcxnylIMWiWNBME0AwmoQZz7cuaTfs2MlTTrLntOJKTp7cN/8vA+GaFH6Dg2pV Fk3DgrFWUNN02lc680w3ljEcW0gn78V00wVEEWO0OsFJ2lsu8CUoW010sp+0ng9fzSQZ kuZAjBaH9lR/rB1QUmc0ExWAWQqxtkLNbuAMisPW1xUV+RjSLxaECeT+gOtdpPMyAL6l a37p0aSEtGQNj1duiRsTvG9haJNll8hM1znl9kZIifNudrudY/RWzwkK1fLk8Y4MTBpk /xYQ== Received: by 10.50.213.34 with SMTP id np2mr9547247igc.57.1352128253165; Mon, 05 Nov 2012 07:10:53 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp231230igt; Mon, 5 Nov 2012 07:10:52 -0800 (PST) Received: by 10.216.45.135 with SMTP id p7mr3630072web.129.1352128251774; Mon, 05 Nov 2012 07:10:51 -0800 (PST) Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by mx.google.com with ESMTPS id v49si3696413wen.14.2012.11.05.07.10.51 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Nov 2012 07:10:51 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.44 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.44 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wg0-f44.google.com with SMTP id dr13so3031899wgb.25 for ; Mon, 05 Nov 2012 07:10:51 -0800 (PST) Received: by 10.180.76.203 with SMTP id m11mr7254015wiw.6.1352128251288; Mon, 05 Nov 2012 07:10:51 -0800 (PST) Received: from laptop.vlan14.pylonone.local (78.Red-88-2-49.staticIP.rima-tde.net. [88.2.49.78]) by mx.google.com with ESMTPS id ea9sm12275388wib.11.2012.11.05.07.10.48 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Nov 2012 07:10:50 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sameo@linux.intel.com Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones Subject: [PATCH 1/8] mfd: ab8500-core: Remove unused ab8500-gpio IRQ ranges Date: Mon, 5 Nov 2012 16:10:29 +0100 Message-Id: <1352128236-11554-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1352128236-11554-1-git-send-email-lee.jones@linaro.org> References: <1352128236-11554-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQl4YuVgNAk7tDIg6/pCgXt8Qz5sdlp4YorbpOD/vISHl/9/KQkvzvjGFTxHTwudtdMIxXvt The IRQ ranges provided in ab8500-core to be passed on to the ab8500-gpio driver are not only redundant, but they are also causing a warning in the boot log. These IRQ ranges, like any other MFD related IRQ resource are passed though MFD core for automatic conversion to virtual IRQs; however, MFD core does not support IRQ mapping of IRQ ranges. Let's just remove them. Cc: Samuel Ortiz Signed-off-by: Lee Jones --- drivers/mfd/ab8500-core.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index 1667c77..e7197fe 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c @@ -591,38 +591,6 @@ int ab8500_suspend(struct ab8500 *ab8500) return 0; } -/* AB8500 GPIO Resources */ -static struct resource __devinitdata ab8500_gpio_resources[] = { - { - .name = "GPIO_INT6", - .start = AB8500_INT_GPIO6R, - .end = AB8500_INT_GPIO41F, - .flags = IORESOURCE_IRQ, - } -}; - -/* AB9540 GPIO Resources */ -static struct resource __devinitdata ab9540_gpio_resources[] = { - { - .name = "GPIO_INT6", - .start = AB8500_INT_GPIO6R, - .end = AB8500_INT_GPIO41F, - .flags = IORESOURCE_IRQ, - }, - { - .name = "GPIO_INT14", - .start = AB9540_INT_GPIO50R, - .end = AB9540_INT_GPIO54R, - .flags = IORESOURCE_IRQ, - }, - { - .name = "GPIO_INT15", - .start = AB9540_INT_GPIO50F, - .end = AB9540_INT_GPIO54F, - .flags = IORESOURCE_IRQ, - } -}; - static struct resource __devinitdata ab8500_gpadc_resources[] = { { .name = "HW_CONV_END", @@ -1065,8 +1033,6 @@ static struct mfd_cell __devinitdata ab8500_devs[] = { { .name = "ab8500-gpio", .of_compatible = "stericsson,ab8500-gpio", - .num_resources = ARRAY_SIZE(ab8500_gpio_resources), - .resources = ab8500_gpio_resources, }, { .name = "ab8500-usb", @@ -1083,8 +1049,6 @@ static struct mfd_cell __devinitdata ab8500_devs[] = { static struct mfd_cell __devinitdata ab9540_devs[] = { { .name = "ab8500-gpio", - .num_resources = ARRAY_SIZE(ab9540_gpio_resources), - .resources = ab9540_gpio_resources, }, { .name = "ab9540-usb",