From: Guennadi Liakhovetski Date: Thu, 5 Jun 2008 09:43:14 +0000 (+0100) Subject: [ARM] 5077/1: spi: fix list scan success verification in PXA ssp driver X-Git-Tag: v2.6.26-rc7~42^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a4aff2233786640c10b178ad78d4dd7e375f1955;p=linux-2.6-omap-h63xx.git [ARM] 5077/1: spi: fix list scan success verification in PXA ssp driver The list search success check in arch/arm/mach-pxa/ssp.c is wrong: for example, it didn't recognise failure for me when I requested port 0. Signed-off-by: Guennadi Liakhovetski Acked-by: Eric Miao Signed-off-by: Russell King --- diff --git a/arch/arm/mach-pxa/ssp.c b/arch/arm/mach-pxa/ssp.c index 00af7f2fed6..0bb31982fb6 100644 --- a/arch/arm/mach-pxa/ssp.c +++ b/arch/arm/mach-pxa/ssp.c @@ -330,7 +330,7 @@ struct ssp_device *ssp_request(int port, const char *label) mutex_unlock(&ssp_lock); - if (ssp->port_id != port) + if (&ssp->node == &ssp_list) return NULL; return ssp;