Skip to content

Commit

Permalink
[ARM] 5077/1: spi: fix list scan success verification in PXA ssp driver
Browse files Browse the repository at this point in the history
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 <g.liakhovetski@pengutronix.de>
Acked-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Guennadi Liakhovetski authored and Russell King committed Jun 11, 2008
1 parent 28ffb5d commit a4aff22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/ssp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a4aff22

Please sign in to comment.