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)
commitf856cf01787354fb3c8cde0a80de606f368b21ed
treea69346d1f7f075f84d2c4efa682b8eeb202e2e0d
parent3c9059d79f5eea6b8b75ddac97693127c3c41db4
spi/mpc52xx-psc-spi: check for valid PSC

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