diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-11-30 15:28:06 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-01 18:50:11 +0000 |
commit | 3b1884c24c98dada51fc4b05735773f0078711d2 (patch) | |
tree | 9a59eb143b850a0b0e7288ae62ef5a24cdd09254 /include/linux/spi | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) |
spi: Uninline spi_unregister_device()
Uninline spi_unregister_device() in preparation of adding more code to
it. Add kerneldoc documentation while we're at it.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/spi')
-rw-r--r-- | include/linux/spi/spi.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index cce80e6dc7d1..075bede66521 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -1115,12 +1115,7 @@ spi_add_device(struct spi_device *spi); extern struct spi_device * spi_new_device(struct spi_master *, struct spi_board_info *); -static inline void -spi_unregister_device(struct spi_device *spi) -{ - if (spi) - device_unregister(&spi->dev); -} +extern void spi_unregister_device(struct spi_device *spi); extern const struct spi_device_id * spi_get_device_id(const struct spi_device *sdev); |