spi: Add THIS_MODULE to spi_driver in SPI core
authorAndrew F. Davis <afd@ti.com>
Fri, 23 Oct 2015 13:59:10 +0000 (08:59 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 28 Oct 2015 01:30:12 +0000 (10:30 +0900)
commitca5d24854210dd02548a080d4271560e926c4fcb
tree9123d1c7eda72150413778e7b7b4be9533b65c12
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
spi: Add THIS_MODULE to spi_driver in SPI core

Add spi_register_driver helper macro that adds THIS_MODULE to
spi_driver for the registering driver. We rename and modify
the existing spi_register_driver to enable this.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c
include/linux/spi/spi.h