linux-mips
[Top] [All Lists]

[PATCH 2/3] MIPS: lantiq: Fix section mismatch in gpio_stp.c

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH 2/3] MIPS: lantiq: Fix section mismatch in gpio_stp.c
From: David Daney <ddaney@caviumnetworks.com>
Date: Wed, 11 May 2011 13:22:26 -0700
Cc: David Daney <ddaney@caviumnetworks.com>, John Crispin <blogic@openwrt.org>
In-reply-to: <1305145347-32605-1-git-send-email-ddaney@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1305145347-32605-1-git-send-email-ddaney@caviumnetworks.com>
Sender: linux-mips-bounce@linux-mips.org
ltq_stp_probe() cannot be __init if ltq_stp_driver isn't also.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Cc: John Crispin <blogic@openwrt.org>
---
 arch/mips/lantiq/xway/gpio_stp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/lantiq/xway/gpio_stp.c b/arch/mips/lantiq/xway/gpio_stp.c
index efa3782..eed5a45 100644
--- a/arch/mips/lantiq/xway/gpio_stp.c
+++ b/arch/mips/lantiq/xway/gpio_stp.c
@@ -111,7 +111,7 @@ static int ltq_stp_hw_init(void)
        return 0;
 }
 
-static int __init ltq_stp_probe(struct platform_device *pdev)
+static int ltq_stp_probe(struct platform_device *pdev)
 {
        struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        int ret = 0;
-- 
1.7.2.3


<Prev in Thread] Current Thread [Next in Thread>