From patchwork Sat Mar 9 20:23:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2242371 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 7BE63DF2F2 for ; Sat, 9 Mar 2013 20:23:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751481Ab3CIUX4 (ORCPT ); Sat, 9 Mar 2013 15:23:56 -0500 Received: from mail-we0-f172.google.com ([74.125.82.172]:52148 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751406Ab3CIUXz (ORCPT ); Sat, 9 Mar 2013 15:23:55 -0500 Received: by mail-we0-f172.google.com with SMTP id d46so2313929wer.17 for ; Sat, 09 Mar 2013 12:23:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=Oa89D7KfVZfgXwFf/0LKpl9h+trvzIx1NoZpYrIcM+0=; b=A+IAlkhdkyRCpS/mVabKr4dY8L9EJUbU4fuQ8+lhEE1EgNhavhvt+MVJZZvqWYpDEF DFiARHe8wyAaJNDg+0g7TUu0SIs9H9d+la41eQzgOh6NyipIBTTk28Xa3cyqI2cGt3yc k2/YRSyj2qRrovh1YCmxotxrfG/p2Dvn3gMwzNZtBZMvBQqUVxyalNSdqi5frZdbOH4e FUZjxBgsjNznnJzXjS4A+RQTzxSKUL6QD1xAdYm18EfGYcu9gIu3OSzAXiV8DEGe/52c GSwOD7FXfyDYIGMZlygA2y/LQnv9ifQCaUErVZmvVsD7D8XyodkPJbtgqzg/aMo6mD9f uKXQ== X-Received: by 10.194.7.196 with SMTP id l4mr11208708wja.28.1362860634239; Sat, 09 Mar 2013 12:23:54 -0800 (PST) Received: from flatron.tomeq (87-207-52-162.dynamic.chello.pl. [87.207.52.162]) by mx.google.com with ESMTPS id ed6sm6858911wib.9.2013.03.09.12.23.52 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 09 Mar 2013 12:23:53 -0800 (PST) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, Kukjin Kim , kyungmin.park@samsung.com, linux@simtec.co.uk, broonie@opensource.wolfsonmicro.com, kwangwoo.lee@gmail.com, jacmet@sunsite.dk, augulis.darius@gmail.com, mcuelenaere@gmail.com, linux@arm.linux.org.uk, Sylwester Nawrocki , buserror@gmail.com, christer@weinigel.se, jekhor@gmail.com, ghcstop@gmail.com, Mark Rutland , Tomasz Figa , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Rob Herring Subject: [PATCH v3 08/12] ARM: SAMSUNG: devs: Drop unnecessary IRQ resources of timer devices Date: Sat, 9 Mar 2013 21:23:17 +0100 Message-Id: <1362860601-18464-9-git-send-email-tomasz.figa@gmail.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1362860601-18464-1-git-send-email-tomasz.figa@gmail.com> References: <1362860601-18464-1-git-send-email-tomasz.figa@gmail.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Devices from s3c_device_timer array are used only for PWM driver, which does not need interrupts. This patch removes IRQ resources of those devices. Signed-off-by: Tomasz Figa --- arch/arm/plat-samsung/devs.c | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index e1124d9..196aa68 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c @@ -1137,34 +1137,22 @@ arch_initcall(s5p_pmu_init); #ifdef CONFIG_SAMSUNG_DEV_PWM -#define TIMER_RESOURCE_SIZE (1) - -#define TIMER_RESOURCE(_tmr, _irq) \ - (struct resource [TIMER_RESOURCE_SIZE]) { \ - [0] = { \ - .start = _irq, \ - .end = _irq, \ - .flags = IORESOURCE_IRQ \ - } \ +#define DEFINE_S3C_TIMER(_tmr_no) { \ + .name = "s3c24xx-pwm", \ + .id = _tmr_no, \ } -#define DEFINE_S3C_TIMER(_tmr_no, _irq) \ - .name = "s3c24xx-pwm", \ - .id = _tmr_no, \ - .num_resources = TIMER_RESOURCE_SIZE, \ - .resource = TIMER_RESOURCE(_tmr_no, _irq), \ - /* * since we already have an static mapping for the timer, * we do not bother setting any IO resource for the base. */ struct platform_device s3c_device_timer[] = { - [0] = { DEFINE_S3C_TIMER(0, IRQ_TIMER0) }, - [1] = { DEFINE_S3C_TIMER(1, IRQ_TIMER1) }, - [2] = { DEFINE_S3C_TIMER(2, IRQ_TIMER2) }, - [3] = { DEFINE_S3C_TIMER(3, IRQ_TIMER3) }, - [4] = { DEFINE_S3C_TIMER(4, IRQ_TIMER4) }, + [0] = DEFINE_S3C_TIMER(0), + [1] = DEFINE_S3C_TIMER(1), + [2] = DEFINE_S3C_TIMER(2), + [3] = DEFINE_S3C_TIMER(3), + [4] = DEFINE_S3C_TIMER(4), }; #endif /* CONFIG_SAMSUNG_DEV_PWM */