From patchwork Mon Jul 28 21:16:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 34433 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0F0C1202E4 for ; Mon, 28 Jul 2014 21:23:32 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id f73sf28479840yha.7 for ; Mon, 28 Jul 2014 14:23:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=/J/q1CYZbWkzDgMIUIs2DRzyaKMELrkGe/OdBUbO7VU=; b=Rx/EUXU+Z1vhT7htTP4hhl2vozKw9o3oVpPGlrPUPGbGF24nNMejD6nDBtLS8LJqev xzkSrI2+aYmWVxRSHF04cb8cL8lpQq3B+mHFssDgcqTAH0xEiKK7bNq2d9G2QzOQrzaP FiKDOVkB7AIDP/bEzMXB/E+VKAIslcG0pcHnoFb3FFCvpi3bYeBI94G2QxciNJQtou1G czgj1aXqkBYzcaYSmBCY1ADQdNOs2DGpVhqy4vfNiyzK8WeT7nBIKhBPxtzBbFVa8l+u 8eaX4nTDMmrlV++lAOlV5fFrAaVNFHrQKKIg+XlmWfVXSzi9z5Yg0ioCFOIpKvGnM9yk rjlw== X-Gm-Message-State: ALoCoQnwU6EaoPkdv7digKgg73QxchzTtUaDlm4SXJGQ4a0wStyFowOPppxHGGuoqudY/eJOJEDa X-Received: by 10.224.130.10 with SMTP id q10mr1230720qas.5.1406582611760; Mon, 28 Jul 2014 14:23:31 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.80 with SMTP id o74ls532882qgd.48.gmail; Mon, 28 Jul 2014 14:23:31 -0700 (PDT) X-Received: by 10.220.175.70 with SMTP id w6mr3572133vcz.72.1406582611606; Mon, 28 Jul 2014 14:23:31 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id g14si13316738vdh.66.2014.07.28.14.23.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jul 2014 14:23:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id lf12so12443558vcb.1 for ; Mon, 28 Jul 2014 14:23:31 -0700 (PDT) X-Received: by 10.52.248.146 with SMTP id ym18mr164105vdc.8.1406582611532; Mon, 28 Jul 2014 14:23:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp197307vcb; Mon, 28 Jul 2014 14:23:29 -0700 (PDT) X-Received: by 10.68.167.133 with SMTP id zo5mr40614830pbb.21.1406582607725; Mon, 28 Jul 2014 14:23:27 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id si3si8680841pac.158.2014.07.28.14.23.23 for ; Mon, 28 Jul 2014 14:23:27 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752917AbaG1VXV (ORCPT + 25 others); Mon, 28 Jul 2014 17:23:21 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:55576 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752297AbaG1VRq (ORCPT ); Mon, 28 Jul 2014 17:17:46 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s6SLHK4F004208; Mon, 28 Jul 2014 16:17:20 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s6SLHKjQ027740; Mon, 28 Jul 2014 16:17:20 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Mon, 28 Jul 2014 16:17:19 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s6SLHJVq012883; Mon, 28 Jul 2014 16:17:19 -0500 From: Felipe Balbi To: Tony Lindgren CC: Linux OMAP Mailing List , Linux ARM Kernel Mailing List , , , , , , , Linux Kernel Mailing List , Felipe Balbi Subject: [PATCH 34/35] irq: intc: remove unnecesary of_address_to_resource() call Date: Mon, 28 Jul 2014 16:16:22 -0500 Message-ID: <1406582183-696-35-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.0.1.563.g66f467c In-Reply-To: <1406582183-696-1-git-send-email-balbi@ti.com> References: <1406582183-696-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , of_iomap(), which is called from omap_init_irq_of(), already takes care of making sure we have a valid resource to deal with. Because of that, we can safely remove our explicit call to of_address_to_resource(). Signed-off-by: Felipe Balbi --- drivers/irqchip/irq-omap-intc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/irqchip/irq-omap-intc.c b/drivers/irqchip/irq-omap-intc.c index 342e0ab..371ff5e 100644 --- a/drivers/irqchip/irq-omap-intc.c +++ b/drivers/irqchip/irq-omap-intc.c @@ -363,7 +363,6 @@ void __init ti81xx_init_irq(void) static int __init intc_of_init(struct device_node *node, struct device_node *parent) { - struct resource res; int ret; omap_nr_pending = 3; @@ -372,11 +371,6 @@ static int __init intc_of_init(struct device_node *node, if (WARN_ON(!node)) return -ENODEV; - if (of_address_to_resource(node, 0, &res)) { - WARN(1, "unable to get intc registers\n"); - return -EINVAL; - } - if (of_device_is_compatible(node, "ti,am33xx-intc")) { omap_nr_irqs = 128; omap_nr_pending = 4;