From: Tomasz Figa <tomasz.figa@gmail.com> To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, Kukjin Kim <kgene.kim@samsung.com>, 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 <sylvester.nawrocki@gmail.com>, buserror@gmail.com, christer@weinigel.se, jekhor@gmail.com, ghcstop@gmail.com, Mark Rutland <mark.rutland@arm.com>, Tomasz Figa <tomasz.figa@gmail.com> Subject: [PATCH v2 08/12] ARM: SAMSUNG: devs: Drop unnecessary IRQ resources of timer devices Date: Sat, 16 Feb 2013 17:44:00 +0100 [thread overview] Message-ID: <1361033044-27629-9-git-send-email-tomasz.figa@gmail.com> (raw) In-Reply-To: <1361033044-27629-1-git-send-email-tomasz.figa@gmail.com> 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 <tomasz.figa@gmail.com> --- 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 */ -- 1.8.1.2
WARNING: multiple messages have this Message-ID (diff)
From: tomasz.figa@gmail.com (Tomasz Figa) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 08/12] ARM: SAMSUNG: devs: Drop unnecessary IRQ resources of timer devices Date: Sat, 16 Feb 2013 17:44:00 +0100 [thread overview] Message-ID: <1361033044-27629-9-git-send-email-tomasz.figa@gmail.com> (raw) In-Reply-To: <1361033044-27629-1-git-send-email-tomasz.figa@gmail.com> 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 <tomasz.figa@gmail.com> --- 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 */ -- 1.8.1.2
next prev parent reply other threads:[~2013-02-16 16:45 UTC|newest] Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-02-16 16:43 [PATCH v2 00/12] ARM: samsung-time: Prepare for multiplatform support Tomasz Figa 2013-02-16 16:43 ` Tomasz Figa 2013-02-16 16:43 ` [PATCH v2 01/12] ARM: SAMSUNG: Move samsung-time to drivers/clocksource Tomasz Figa 2013-02-16 16:43 ` Tomasz Figa 2013-02-16 16:43 ` [PATCH v2 02/12] clocksource: samsung-time: Set platform-specific parameters at runtime Tomasz Figa 2013-02-16 16:43 ` Tomasz Figa 2013-02-16 16:43 ` [PATCH v2 03/12] clocksource: samsung-time: Drop useless defines from public header Tomasz Figa 2013-02-16 16:43 ` Tomasz Figa 2013-02-16 16:43 ` [PATCH v2 04/12] ARM: SAMSUNG: Move samsung-time.h header to inlude/clocksource Tomasz Figa 2013-02-16 16:43 ` Tomasz Figa 2013-02-16 16:43 ` [PATCH v2 05/12] clocksource: samsung-time: Use local register definitions Tomasz Figa 2013-02-16 16:43 ` Tomasz Figa 2013-02-16 16:43 ` [PATCH v2 06/12] clocksource: samsung-time: Remove use of static register mapping Tomasz Figa 2013-02-16 16:43 ` Tomasz Figa 2013-02-16 16:43 ` [PATCH v2 07/12] clocksource: samsung-time: Use clk_get_sys for getting clocks Tomasz Figa 2013-02-16 16:43 ` Tomasz Figa 2013-02-16 16:44 ` Tomasz Figa [this message] 2013-02-16 16:44 ` [PATCH v2 08/12] ARM: SAMSUNG: devs: Drop unnecessary IRQ resources of timer devices Tomasz Figa 2013-02-16 16:44 ` [PATCH v2 09/12] clocksource: samsung-time: Do not use static IRQ definition Tomasz Figa 2013-02-16 16:44 ` Tomasz Figa 2013-02-16 16:44 ` [PATCH v2 10/12] clocksource: samsung-time: Move IRQ mask/ack handling to the driver Tomasz Figa 2013-02-16 16:44 ` Tomasz Figa 2013-02-16 16:44 ` [PATCH v2 11/12] ARM: SAMSUNG: Remove unused PWM timer IRQ chip code Tomasz Figa 2013-02-16 16:44 ` Tomasz Figa 2013-02-16 16:44 ` [PATCH v2 12/12] clocksource: samsung-time: Add Device Tree support Tomasz Figa 2013-02-16 16:44 ` Tomasz Figa 2013-02-18 2:39 ` Rob Herring 2013-02-18 2:39 ` Rob Herring 2013-02-18 9:48 ` Mark Rutland 2013-02-18 9:48 ` Mark Rutland 2013-02-16 23:05 ` [PATCH v2 00/12] ARM: samsung-time: Prepare for multiplatform support Heiko Stübner 2013-02-16 23:05 ` Heiko Stübner 2013-02-17 16:05 ` Heiko Stübner 2013-02-17 16:05 ` Heiko Stübner 2013-02-17 16:13 ` Tomasz Figa 2013-02-17 16:13 ` Tomasz Figa
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1361033044-27629-9-git-send-email-tomasz.figa@gmail.com \ --to=tomasz.figa@gmail.com \ --cc=augulis.darius@gmail.com \ --cc=broonie@opensource.wolfsonmicro.com \ --cc=buserror@gmail.com \ --cc=christer@weinigel.se \ --cc=ghcstop@gmail.com \ --cc=jacmet@sunsite.dk \ --cc=jekhor@gmail.com \ --cc=kgene.kim@samsung.com \ --cc=kwangwoo.lee@gmail.com \ --cc=kyungmin.park@samsung.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=linux@arm.linux.org.uk \ --cc=linux@simtec.co.uk \ --cc=mark.rutland@arm.com \ --cc=mcuelenaere@gmail.com \ --cc=sylvester.nawrocki@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.