From: Mark Brown Date: Sat, 18 Feb 2012 00:23:29 +0000 (-0800) Subject: spi: Mark spi_register_board_info() __devinit X-Git-Tag: v3.4-rc1~170^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=690fb11be34cc908ef895d16c6c1673df1b4667a;p=platform%2Fkernel%2Flinux-stable.git spi: Mark spi_register_board_info() __devinit 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 Signed-off-by: Grant Likely --- diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index c12a9db..7ea06af 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -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;