From: Shubhrajyoti D Date: Thu, 2 Aug 2012 11:11:25 +0000 (+0530) Subject: spi: omap2-mcspi: Fix the error handling in probe X-Git-Tag: v3.6-rc3~23^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37a2d84a38df16e614bbfbb18a5155ebd8256938;p=pandora-kernel.git 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 Reported-by: Guenter Roeck Signed-off-by: Shubhrajyoti D Signed-off-by: Mark Brown --- Reading git-diff-tree failed