commit | b0052b088cf0cb688b4630c1d520c57276da71a5 | [log] [tgz] |
---|---|---|
author | Marc Kleine-Budde <mkl@pengutronix.de> | Thu Mar 24 02:34:33 2011 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sun Mar 27 23:35:01 2011 -0700 |
tree | f187913764c4b2e7724d3cc118af52f58de183c6 | |
parent | ee6f0988a69b3a81bcea0871418ecf5db332149c [diff] |
can: c_can_platform: fix irq check in probe This patch fixes the check in the probe function whether a IRQ was supplied to the driver. The original driver check the irq "struct resource *" against <= 0. Use "platform_get_irq" instead. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Cc: Bhupesh Sharma <bhupesh.sharma@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>