spi: Mark spi_register_board_info() __devinit
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 18 Feb 2012 00:23:29 +0000 (16:23 -0800)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 9 Mar 2012 21:41:49 +0000 (14:41 -0700)
Some systems have SPI devices located on plugin modules which are
enumerated at runtime as devices. The drivers for these plugin modules
need to register their SPI devices at probe() time so want to be able
to call spi_register_board_info() but that function is currently marked
as __init rather than __devinit so this usage isn't legal. Change the
annotation to __devinit to handle this.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi.c

index c12a9dba2d82be7c31691c5cc4c9af804974616c..7ea06af8636aeee12231d2ff9ce82646677f996b 100644 (file)
@@ -484,7 +484,7 @@ static void spi_match_master_to_boardinfo(struct spi_master *master,
  * The board info passed can safely be __initdata ... but be careful of
  * any embedded pointers (platform_data, etc), they're copied as-is.
  */
-int __init
+int __devinit
 spi_register_board_info(struct spi_board_info const *info, unsigned n)
 {
        struct boardinfo *bi;
This page took 0.048022 seconds and 5 git commands to generate.