public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: omap2-mcspi: fix section mismatch regression in probe
@ 2012-06-19  9:57 Venkatraman S
  2012-06-25  9:47 ` Felipe Balbi
  0 siblings, 1 reply; 2+ messages in thread
From: Venkatraman S @ 2012-06-19  9:57 UTC (permalink / raw)
  To: Grant Likely; +Cc: spi-devel-general, linux-omap, balbi, Venkatraman S

Commit 7d6b6d83(make it behave as a module) annotated probe with
__devinit, but a referenced function was not.

This introduced a section mismatch warning:
WARNING: vmlinux.o(.devinit.text+0x3eec): Section mismatch in reference
from the function omap2_mcspi_probe() to the function
.init.text:omap2_mcspi_master_setup()

Signed-off-by: Venkatraman S <svenkatr@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 46ef5fe..1618e89 100644
--- a/drivers/spi/spi-omap2-mcspi.c
+++ b/drivers/spi/spi-omap2-mcspi.c
@@ -1031,7 +1031,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.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] spi: omap2-mcspi: fix section mismatch regression in probe
  2012-06-19  9:57 [PATCH] spi: omap2-mcspi: fix section mismatch regression in probe Venkatraman S
@ 2012-06-25  9:47 ` Felipe Balbi
  0 siblings, 0 replies; 2+ messages in thread
From: Felipe Balbi @ 2012-06-25  9:47 UTC (permalink / raw)
  To: Venkatraman S; +Cc: Grant Likely, spi-devel-general, linux-omap, balbi

[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]

On Tue, Jun 19, 2012 at 03:27:48PM +0530, Venkatraman S wrote:
> Commit 7d6b6d83(make it behave as a module) annotated probe with
> __devinit, but a referenced function was not.
> 
> This introduced a section mismatch warning:
> WARNING: vmlinux.o(.devinit.text+0x3eec): Section mismatch in reference
> from the function omap2_mcspi_probe() to the function
> .init.text:omap2_mcspi_master_setup()
> 
> Signed-off-by: Venkatraman S <svenkatr@ti.com>

Acked-by: Felipe Balbi <balbi@ti.com>

my apologies

> ---
>  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 46ef5fe..1618e89 100644
> --- a/drivers/spi/spi-omap2-mcspi.c
> +++ b/drivers/spi/spi-omap2-mcspi.c
> @@ -1031,7 +1031,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.0.4
> 

-- 
balbi

[-- 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-06-25  9:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-19  9:57 [PATCH] spi: omap2-mcspi: fix section mismatch regression in probe Venkatraman S
2012-06-25  9:47 ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox