]> git.baikalelectronics.ru Git - kernel.git/commit
spi: omap2-mcspi: Fix the error handling in probe
authorShubhrajyoti D <shubhrajyoti@ti.com>
Thu, 2 Aug 2012 11:11:25 +0000 (16:41 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 4 Aug 2012 11:06:47 +0000 (12:06 +0100)
commitee957f4fe9dc9490e55dbf5aa3d90d9c77d7af34
tree9bdcffa4d86319e77c33ba9e21c24dde9cd743e7
parenteb291d571954a101692c4a72dc3f22a51696cd2e
spi: omap2-mcspi: Fix the error handling in probe

The kfree() is taken care of by the spi core (spi_master_release() function)
that is called once the last reference to the underlying struct device has
been released. So the driver need not call kfree.

Also the put was missed in some of the error handling fix the same.
There by fixing the missing device_put in some of the error paths.

Acked-by: Guenter Roeck <linux@roeck-us.net>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-omap2-mcspi.c