spi/mpc52xx: Fix error handling in probe function
authorGuenter Roeck <linux@roeck-us.net>
Sat, 18 Aug 2012 16:29:21 +0000 (09:29 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 22 Aug 2012 18:26:36 +0000 (19:26 +0100)
commit866c0f25d2dc896e647970cf5e371b5083a6e5d5
treeb8d376d6b0c3602aeb16225c6d7f8e101bed4b23
parent495e3ff365425f9b69884ddde36047184f37c2bd
spi/mpc52xx: Fix error handling in probe function

The call to spi_master_put() is needed to free device memory. It must be called
after spi_alloc_master, and must only be called after the device memory is no
longer used.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-mpc52xx.c