can: c_can_platform: fix irq check in probe
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Mar 2011 02:34:33 +0000 (02:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Mar 2011 06:35:01 +0000 (23:35 -0700)
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>

No differences found