From patchwork Tue Aug 16 14:33:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjarne Steinsbo X-Patchwork-Id: 1071822 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7GEXdeB015005 for ; Tue, 16 Aug 2011 14:33:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753073Ab1HPOde (ORCPT ); Tue, 16 Aug 2011 10:33:34 -0400 Received: from mail-vx0-f174.google.com ([209.85.220.174]:47409 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753072Ab1HPOdd (ORCPT ); Tue, 16 Aug 2011 10:33:33 -0400 Received: by vxi9 with SMTP id 9so4695252vxi.19 for ; Tue, 16 Aug 2011 07:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=yYOPq+3qk5xQ6W2XK6XcqGhOTAIqe71faQgCmIgiD9s=; b=COu0UQNVxmMt5ApH1IHolrAxEVgeWuyfWrYVjAUpRsplBM0e0fOsKGT6h9UQPoxkXZ xzKVe+ItUuyGgtIgsUqDdbkTFYxuAfZLwyObkHHfr/h8Ssibb2M+QQWO4XmA6W16lc8T GFMuMfCF2m7slJflyWUwiW4CpTqmi5tIiXess= MIME-Version: 1.0 Received: by 10.220.150.14 with SMTP id w14mr1329163vcv.167.1313505212706; Tue, 16 Aug 2011 07:33:32 -0700 (PDT) Received: by 10.220.117.135 with HTTP; Tue, 16 Aug 2011 07:33:32 -0700 (PDT) Date: Tue, 16 Aug 2011 16:33:32 +0200 Message-ID: Subject: [PATCH] ARM: OMAP: Pointers to __devexit should be __devexit_p From: Bjarne Steinsbo To: linux-omap@vger.kernel.org Cc: Kevin Hilman , Tony Lindgren Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 16 Aug 2011 14:33:39 +0000 (UTC) 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 --- 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"