linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: festevam@gmail.com (Fabio Estevam)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/2] ARM: mx5/eukrea_mbimx51-baseboard: Fix build issue due to removed irq
Date: Sat,  4 Jun 2011 15:29:45 -0300	[thread overview]
Message-ID: <1307212185-18184-2-git-send-email-festevam@gmail.com> (raw)
In-Reply-To: <1307212185-18184-1-git-send-email-festevam@gmail.com>

commit b50d28 (ARM i.MX: get rid of wrong MXC_INTERNAL_IRQ usage) broke eukrea_mbimx51-baseboard
build because it removed MBIMX51_TSC2007_IRQ and still referenced it in irq_set_irq_type.

Fix it by using gpio_to_irq with the correct GPIO parameter.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Changes since v1:
No changes
 arch/arm/mach-mx5/eukrea_mbimx51-baseboard.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-mx5/eukrea_mbimx51-baseboard.c b/arch/arm/mach-mx5/eukrea_mbimx51-baseboard.c
index 592d172..b89d829 100644
--- a/arch/arm/mach-mx5/eukrea_mbimx51-baseboard.c
+++ b/arch/arm/mach-mx5/eukrea_mbimx51-baseboard.c
@@ -197,7 +197,8 @@ void __init eukrea_mbimx51_baseboard_init(void)
 
 	gpio_request(MBIMX51_TSC2007_GPIO, "tsc2007_irq");
 	gpio_direction_input(MBIMX51_TSC2007_GPIO);
-	irq_set_irq_type(MBIMX51_TSC2007_IRQ, IRQF_TRIGGER_FALLING);
+	irq_set_irq_type(gpio_to_irq(MBIMX51_TSC2007_GPIO),
+					IRQF_TRIGGER_FALLING);
 	i2c_register_board_info(1, mbimx51_i2c_devices,
 				ARRAY_SIZE(mbimx51_i2c_devices));
 
-- 
1.7.1

  reply	other threads:[~2011-06-04 18:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-04 18:29 [PATCH v2 1/2] ARM: mx5/mx51_3ds: Fix build due to missing header and wrong define Fabio Estevam
2011-06-04 18:29 ` Fabio Estevam [this message]
2011-06-06  7:42 ` Sascha Hauer
2011-06-06 12:50   ` Fabio Estevam

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=1307212185-18184-2-git-send-email-festevam@gmail.com \
    --to=festevam@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).