From patchwork Mon Sep 15 21:15:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 37426 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2F7B0206A5 for ; Mon, 15 Sep 2014 21:16:07 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id e53sf2629515eek.6 for ; Mon, 15 Sep 2014 14:16:06 -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=5u0XlTxYiZOwVXhsBMfEwZlV4s59YoX7Qiv18wEuBBA=; b=Lk+Le2zVLavWx+mrZupklxFWWxi2A08vz9zY/LP6WZS4qUF48Zfih4ldUh1cdw/EUW phW8nvg6m7XSzUJVuXrsygTw05N+iIB3fR4H65bVAwglVVcOnr21W8ypRUvwsVAgCeJA q98lFmXTKeZ9SRuKRlm6WGOdaPykc1B97Di4zcLA+5Uy0lj+l1ZuygB3XIrD6hECqER5 HRJsFB8Vbucdt7veqgRXHESNwZ7HbKBt+egtleeQ6IfSzyKr3mkNsYwnfmJH0HhJw0oD q71XYavx8dk1F1OEhwqTM97tCb+uliRvOFUqoOKn1qTk9EYTWAUEqAi9C0sXJe2PB9Bs RakQ== X-Gm-Message-State: ALoCoQmxsGFgYmOPrGct0a6Sg+m3wMxIWggEmWQP2odsFphGmWI651EqgnehbP8T1ymGocl5wOqK X-Received: by 10.180.109.194 with SMTP id hu2mr1005174wib.1.1410815766381; Mon, 15 Sep 2014 14:16:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.227 with SMTP id lf3ls427631lab.101.gmail; Mon, 15 Sep 2014 14:16:06 -0700 (PDT) X-Received: by 10.112.150.194 with SMTP id uk2mr5935790lbb.97.1410815766186; Mon, 15 Sep 2014 14:16:06 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by mx.google.com with ESMTPS id le2si20989056lac.114.2014.09.15.14.16.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Sep 2014 14:16:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by mail-lb0-f179.google.com with SMTP id p9so5207862lbv.38 for ; Mon, 15 Sep 2014 14:16:06 -0700 (PDT) X-Received: by 10.112.76.6 with SMTP id g6mr29817643lbw.22.1410815766074; Mon, 15 Sep 2014 14:16:06 -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.112.130.169 with SMTP id of9csp289778lbb; Mon, 15 Sep 2014 14:16:05 -0700 (PDT) X-Received: by 10.70.132.167 with SMTP id ov7mr46069498pdb.45.1410815764643; Mon, 15 Sep 2014 14:16:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fk2si25356202pdb.228.2014.09.15.14.16.04 for ; Mon, 15 Sep 2014 14:16:04 -0700 (PDT) Received-SPF: none (google.com: linux-omap-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 S1754455AbaIOVQB (ORCPT + 5 others); Mon, 15 Sep 2014 17:16:01 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:37397 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754096AbaIOVQA (ORCPT ); Mon, 15 Sep 2014 17:16:00 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s8FLFdrY020440; Mon, 15 Sep 2014 16:15:39 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s8FLFdxG010297; Mon, 15 Sep 2014 16:15:39 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Mon, 15 Sep 2014 16:15:38 -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 s8FLFc4F013898; Mon, 15 Sep 2014 16:15:39 -0500 From: Felipe Balbi To: Tony Lindgren CC: Jason Cooper , Linux OMAP Mailing List , Linux ARM Kernel Mailing List , Felipe Balbi Subject: [PATCH 5/9] irqchip: omap-intc: remove unnecesary of_address_to_resource() call Date: Mon, 15 Sep 2014 16:15:05 -0500 Message-ID: <1410815709-462-6-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.0.1.563.g66f467c In-Reply-To: <1410815709-462-1-git-send-email-balbi@ti.com> References: <1410815709-462-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@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.217.179 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(). Acked-by: Jason Cooper 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 f4d562e..e97b535 100644 --- a/drivers/irqchip/irq-omap-intc.c +++ b/drivers/irqchip/irq-omap-intc.c @@ -362,7 +362,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; @@ -371,11 +370,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;