From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH 2/2] can: c_can_platform: fix irq check in probe Date: Sun, 27 Mar 2011 18:20:56 -0700 (PDT) Message-ID: <20110327.182056.179949047.davem@davemloft.net> References: <1300970073-25522-1-git-send-email-mkl@pengutronix.de> <1300970073-25522-3-git-send-email-mkl@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Socketcan-core-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, jan-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org To: mkl-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org Return-path: In-Reply-To: <1300970073-25522-3-git-send-email-mkl-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: socketcan-core-bounces-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org Errors-To: socketcan-core-bounces-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org List-Id: netdev.vger.kernel.org From: Marc Kleine-Budde Date: Thu, 24 Mar 2011 13:34:33 +0100 > 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 Applied.