All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP: Pointers to __devexit should be __devexit_p
@ 2011-08-16 14:33 Bjarne Steinsbo
  2011-09-14  7:10 ` Bjarne Steinsbo
  0 siblings, 1 reply; 2+ messages in thread
From: Bjarne Steinsbo @ 2011-08-16 14:33 UTC (permalink / raw)
  To: linux-omap; +Cc: Kevin Hilman, Tony Lindgren

Pointers to functions that are annotated as __devexit should be
protected by the __devexit_p() macro.

This fixes a build failure for OMAP when defined(CONFIG_SMP_ON_UP) &&
!defined(CONFIG_DEBUG_SPINLOCK)

Signed-off-by: Bjarne Steinsbo <bsteinsbo@gmail.com>
---
 arch/arm/mach-omap2/smartreflex.c |    2 +-
 arch/arm/plat-omap/dma.c          |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/smartreflex.c
b/arch/arm/mach-omap2/smartreflex.c
index 34c01a7..67bc6ce 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -1002,7 +1002,7 @@ static int __devexit omap_sr_remove(struct
platform_device *pdev)
 }

 static struct platform_driver smartreflex_driver = {
-	.remove         = omap_sr_remove,
+	.remove         = __devexit_p(omap_sr_remove),
 	.driver		= {
 		.name	= "smartreflex",
 	},
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index c22217c..f7150ba 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -2105,7 +2105,7 @@ static int __devexit
omap_system_dma_remove(struct platform_device *pdev)

 static struct platform_driver omap_system_dma_driver = {
 	.probe		= omap_system_dma_probe,
-	.remove		= omap_system_dma_remove,
+	.remove		= __devexit_p(omap_system_dma_remove),
 	.driver		= {
 		.name	= "omap_dma_system"
 	},
-- 
1.7.1

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

* Re: [PATCH] ARM: OMAP: Pointers to __devexit should be __devexit_p
  2011-08-16 14:33 [PATCH] ARM: OMAP: Pointers to __devexit should be __devexit_p Bjarne Steinsbo
@ 2011-09-14  7:10 ` Bjarne Steinsbo
  0 siblings, 0 replies; 2+ messages in thread
From: Bjarne Steinsbo @ 2011-09-14  7:10 UTC (permalink / raw)
  To: linux-omap; +Cc: Kevin Hilman, Tony Lindgren

I can't see this one queued up anywhere.  Did it just slip through the
cracks, or are there any problems with it?

BR,

Bjarne Steinsbo

On Tue, Aug 16, 2011 at 4:33 PM, Bjarne Steinsbo <bsteinsbo@gmail.com> wrote:
> Pointers to functions that are annotated as __devexit should be
> protected by the __devexit_p() macro.
>
> This fixes a build failure for OMAP when defined(CONFIG_SMP_ON_UP) &&
> !defined(CONFIG_DEBUG_SPINLOCK)
>
> Signed-off-by: Bjarne Steinsbo <bsteinsbo@gmail.com>
> ---
>  arch/arm/mach-omap2/smartreflex.c |    2 +-
>  arch/arm/plat-omap/dma.c          |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/smartreflex.c
> b/arch/arm/mach-omap2/smartreflex.c
> index 34c01a7..67bc6ce 100644
> --- a/arch/arm/mach-omap2/smartreflex.c
> +++ b/arch/arm/mach-omap2/smartreflex.c
> @@ -1002,7 +1002,7 @@ static int __devexit omap_sr_remove(struct
> platform_device *pdev)
>  }
>
>  static struct platform_driver smartreflex_driver = {
> -       .remove         = omap_sr_remove,
> +       .remove         = __devexit_p(omap_sr_remove),
>        .driver         = {
>                .name   = "smartreflex",
>        },
> diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
> index c22217c..f7150ba 100644
> --- a/arch/arm/plat-omap/dma.c
> +++ b/arch/arm/plat-omap/dma.c
> @@ -2105,7 +2105,7 @@ static int __devexit
> omap_system_dma_remove(struct platform_device *pdev)
>
>  static struct platform_driver omap_system_dma_driver = {
>        .probe          = omap_system_dma_probe,
> -       .remove         = omap_system_dma_remove,
> +       .remove         = __devexit_p(omap_system_dma_remove),
>        .driver         = {
>                .name   = "omap_dma_system"
>        },
> --
> 1.7.1
>
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2011-09-14  7:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-16 14:33 [PATCH] ARM: OMAP: Pointers to __devexit should be __devexit_p Bjarne Steinsbo
2011-09-14  7:10 ` Bjarne Steinsbo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.