From: Jean Delvare Date: Thu, 13 Feb 2014 14:28:41 +0000 (+0100) Subject: spi: Clean up probe and remove functions X-Git-Tag: v3.15-rc1~147^2~9^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aec35f4ee6eefba616065547e6882c084cc7f5cb;p=pandora-kernel.git spi: Clean up probe and remove functions While backporting 33cf00e5 ("spi: attach/detach SPI device to the ACPI power domain"), I noticed that the code changes were suboptimal: * Why use &spi->dev when we have dev at hand? * After fixing the above, spi is used only once, so we don't really need a local variable for it. This results in the following clean-up. Signed-off-by: Jean Delvare Acked-by: Rafael J. Wysocki Signed-off-by: Mark Brown --- Reading git-diff-tree failed