]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit873105b988952886ed457d7c75db3ae9b881fb06
treea69346d1f7f075f84d2c4efa682b8eeb202e2e0d
parentbb9e017e852a2b29b1ffcead884ef2cfe452776d
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