* [PATCH] spi/omap2: mark omap2_mcspi_master_setup as __devinit
@ 2012-07-20 10:31 Shubhrajyoti D
2012-07-22 19:16 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Shubhrajyoti D @ 2012-07-20 10:31 UTC (permalink / raw)
To: spi-devel-general
Cc: linux-omap, linux-kernel, broonie, broonie, Arnd Bergmann,
Shubhrajyoti D
From: Arnd Bergmann <arnd@arndb.de>
This warning recently appeared with omap2plus_defconfig:
WARNING: drivers/spi/built-in.o(.devinit.text+0x3c4): Section mismatch in reference from the function omap2_mcspi_probe() to the function .init.text:omap2_mcspi_master_setup()
The function __devinit omap2_mcspi_probe() references
a function __init omap2_mcspi_master_setup().
If omap2_mcspi_master_setup is only used by omap2_mcspi_probe then
annotate omap2_mcspi_master_setup with a matching annotation.
The fix is obviously to mark the omap2_mcspi_master_setup function as
__devinit, rather than __init.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
---
drivers/spi/spi-omap2-mcspi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c
index 37ccdb7..7d46b15 100644
--- a/drivers/spi/spi-omap2-mcspi.c
+++ b/drivers/spi/spi-omap2-mcspi.c
@@ -1034,7 +1034,7 @@ static int omap2_mcspi_transfer_one_message(struct spi_master *master,
return 0;
}
-static int __init omap2_mcspi_master_setup(struct omap2_mcspi *mcspi)
+static int __devinit omap2_mcspi_master_setup(struct omap2_mcspi *mcspi)
{
struct spi_master *master = mcspi->master;
struct omap2_mcspi_regs *ctx = &mcspi->ctx;
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] spi/omap2: mark omap2_mcspi_master_setup as __devinit
2012-07-20 10:31 [PATCH] spi/omap2: mark omap2_mcspi_master_setup as __devinit Shubhrajyoti D
@ 2012-07-22 19:16 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-07-22 19:16 UTC (permalink / raw)
To: Shubhrajyoti D; +Cc: spi-devel-general, linux-omap, linux-kernel, Arnd Bergmann
[-- Attachment #1: Type: text/plain, Size: 188 bytes --]
On Fri, Jul 20, 2012 at 04:01:43PM +0530, Shubhrajyoti D wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> This warning recently appeared with omap2plus_defconfig:
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-22 19:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-20 10:31 [PATCH] spi/omap2: mark omap2_mcspi_master_setup as __devinit Shubhrajyoti D
2012-07-22 19:16 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox