spi/mpc52xx-psc-spi: check for valid PSC
authorWolfram Sang <w.sang@pengutronix.de>
Mon, 2 Nov 2009 03:53:11 +0000 (03:53 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 4 Nov 2009 23:42:47 +0000 (16:42 -0700)
This driver calls mpc52xx_set_psc_clkdiv() but doesn't check its return value
to see if the PSC is actually valid for SPI use. Add the check and a hint for
the user.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/mpc52xx_psc_spi.c

Simple merge