From: Lars-Peter Clausen Date: Wed, 16 Nov 2011 09:13:37 +0000 (+0100) Subject: SPI: Add helper macro for spi_driver boilerplate X-Git-Tag: v3.3-rc1~30^2~1^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3acbb0142d48713a8f65cde678a54f419801c189;p=pandora-kernel.git SPI: Add helper macro for spi_driver boilerplate This patch introduces the module_spi_driver macro which is a convenience macro for SPI driver modules similar to module_platform_driver. It is intended to be used by drivers which init/exit section does nothing but register/unregister the SPI driver. By using this macro it is possible to eliminate a few lines of boilerplate code per SPI driver. Signed-off-by: Lars-Peter Clausen Acked-by: Grant Likely Acked-by: Wolfram Sang Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed