From patchwork Wed Oct 24 14:45:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12477 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 60D0523F58 for ; Wed, 24 Oct 2012 14:45:51 +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 D2841A18C6A for ; Wed, 24 Oct 2012 14:45:50 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so731028iej.11 for ; Wed, 24 Oct 2012 07:45:50 -0700 (PDT) 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=YeB9X5/4NgE7/DXeAP/PxLpQ6uhdJKoNxsSMwQUaqvg=; b=JYzAugPM3DOVu0nq30ftCiMit3KyueSPOHguhdmCUd6LA3U1dS1GzOHmFLNrC4K9X+ baAlNDmFQH1znx9AUiV8qozNoaf8f2yAHf5GotAThVvYtn7Z0IzjBzo1DiVIKGH0blnA m4bRzuqXIMyCh4dyqXM5TkHiDW7/PoBmvaWnBkjqOiyxgrgVSoQU4qheMM5mH4+eLQ2V VZVrL3CH2kQP1CR92MCXWAelcKoh3IWIw5RhkXvwySgWCYOoShlxBtYnafIbp6PHE6mV ubfNdi9QYI/uRXWJGrOUguPf80f6D/Vq7D0QCkSeBf3C0/Al2aNUC9GtdXufuJg4+jkT HnMw== Received: by 10.50.140.97 with SMTP id rf1mr1117738igb.70.1351089950228; Wed, 24 Oct 2012 07:45:50 -0700 (PDT) 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 n20csp625479igt; Wed, 24 Oct 2012 07:45:49 -0700 (PDT) Received: by 10.216.90.129 with SMTP id e1mr10139527wef.87.1351089948477; Wed, 24 Oct 2012 07:45:48 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id o3si48902wic.0.2012.10.24.07.45.47 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Oct 2012 07:45:48 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 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-f50.google.com with SMTP id 16so458524wgi.31 for ; Wed, 24 Oct 2012 07:45:47 -0700 (PDT) Received: by 10.216.220.29 with SMTP id n29mr9233052wep.137.1351089947817; Wed, 24 Oct 2012 07:45:47 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id bn7sm5295273wib.8.2012.10.24.07.45.45 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Oct 2012 07:45:47 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones , Samuel Ortiz Subject: [PATCH 1/6] mfd: ab8500-core: Remove unused ab8500-gpio IRQ ranges Date: Wed, 24 Oct 2012 15:45:21 +0100 Message-Id: <1351089926-32161-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1351089926-32161-1-git-send-email-lee.jones@linaro.org> References: <1351089926-32161-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQlOPvJ1+3Ue2OBjQRb05Sg6ilFkeWIdiKAAxvAABLMQNqZaVh552M2g9HjMM9UvezDNpQv7 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 d4008db..2a69dc2 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",