spi: fix resource leaks on device setup failure

Johan Hovold <johan@kernel.org> says: Make sure to call controller cleanup() if spi_setup() fails while registering a device to avoid leaking any resources allocated by setup().


Author Mark Brown Date Commit Parent ad50f7bc
+38 -25
2 changed files
+38 -25
2 changed files