From patchwork Thu Feb 7 18:43:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14689 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 27C6724265 for ; Thu, 7 Feb 2013 18:44:08 +0000 (UTC) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by fiordland.canonical.com (Postfix) with ESMTP id 9120AA18696 for ; Thu, 7 Feb 2013 18:44:07 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id d16so1822173vcd.26 for ; Thu, 07 Feb 2013 10:44:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:from:to:cc:subject:date:message-id:x-mailer :mime-version:content-type:x-gm-message-state; bh=qeR5hF87TAdtBWK925qSqmkJE5sTX1zUPvJXNmSZXB4=; b=DDJ0qYod4HJDpY0t1eTyELJdgbuqCyNpGldxpdEGAKGioxE6ogY+QcbsVWGvkxHjLK eLZySQxi4501efCHGgU4/idpixXHw1+PJobw7/ST46Ey61bg71YXGbWnf84w5KAfkZ4n 5ST35By26CJGlTi9vWgnHnDiJlh2OK27DL0auO0gzJiNzzZ6bdzBy4mtAMt6fTA9D9q0 nW6oxJ7LveTMFgkbqG9wq/c6Wr9ehkUxBshUJF/RZdZ73p3E9H5DpLHQIDeiKu/eBZGK EZNf5VDwPanna3drmI7paa9tqKrqbwlb6IMkxIwmN0chtZvjiLIaccLAinKuU2myDkqU tjrQ== X-Received: by 10.58.8.82 with SMTP id p18mr3018356vea.54.1360262647051; Thu, 07 Feb 2013 10:44:07 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.252.8 with SMTP id zo8csp106480vec; Thu, 7 Feb 2013 10:44:06 -0800 (PST) X-Received: by 10.194.92.65 with SMTP id ck1mr4848359wjb.54.1360262645596; Thu, 07 Feb 2013 10:44:05 -0800 (PST) Received: from eu1sys200aog116.obsmtp.com (eu1sys200aog116.obsmtp.com [207.126.144.141]) by mx.google.com with SMTP id h41si49213975eem.120.2013.02.07.10.43.55 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 07 Feb 2013 10:44:05 -0800 (PST) Received-SPF: neutral (google.com: 207.126.144.141 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.141; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.141 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob116.postini.com ([207.126.147.11]) with SMTP ID DSNKURP16a7GmSrZPXWwZi9UXYWdX5pUnf8p@postini.com; Thu, 07 Feb 2013 18:44:04 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 8EB6EB4; Thu, 7 Feb 2013 18:35:39 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 45713180F; Thu, 7 Feb 2013 18:43:49 +0000 (GMT) Received: from exdcvycastm004.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm004", Issuer "exdcvycastm004" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 5020524C2C0; Thu, 7 Feb 2013 19:43:39 +0100 (CET) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.2) with Microsoft SMTP Server (TLS) id 8.3.83.0; Thu, 7 Feb 2013 19:43:47 +0100 From: Linus Walleij To: , Cc: Stephen Warren , Anmar Oueja , Linus Walleij , Thomas Abraham , Arnd Bergmann , Grant Likely Subject: [PATCH] pinctrl: exynos5440: remove erroneous __init Date: Thu, 7 Feb 2013 19:43:42 +0100 Message-ID: <1360262622-23616-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlWuCZBO3M5DSn8/Bk67fS7q3spXOKmqOVmjWz8H9j6D+kSf/yCZauFktDC2WUNGH3y8JdK From: Linus Walleij This removes the __init notation from some of the the exynos 5440 pin controller set-up functions. These functions are called from probe() and as such may be discarded before probe() completes. Cc: Thomas Abraham Cc: Arnd Bergmann Cc: Grant Likely Signed-off-by: Linus Walleij --- drivers/pinctrl/pinctrl-exynos5440.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/pinctrl-exynos5440.c b/drivers/pinctrl/pinctrl-exynos5440.c index de05b64..1427299 100644 --- a/drivers/pinctrl/pinctrl-exynos5440.c +++ b/drivers/pinctrl/pinctrl-exynos5440.c @@ -599,7 +599,7 @@ static int exynos5440_gpio_direction_output(struct gpio_chip *gc, unsigned offse } /* parse the pin numbers listed in the 'samsung,exynos5440-pins' property */ -static int __init exynos5440_pinctrl_parse_dt_pins(struct platform_device *pdev, +static int exynos5440_pinctrl_parse_dt_pins(struct platform_device *pdev, struct device_node *cfg_np, unsigned int **pin_list, unsigned int *npins) { @@ -630,7 +630,7 @@ static int __init exynos5440_pinctrl_parse_dt_pins(struct platform_device *pdev, * Parse the information about all the available pin groups and pin functions * from device node of the pin-controller. */ -static int __init exynos5440_pinctrl_parse_dt(struct platform_device *pdev, +static int exynos5440_pinctrl_parse_dt(struct platform_device *pdev, struct exynos5440_pinctrl_priv_data *priv) { struct device *dev = &pdev->dev; @@ -723,7 +723,7 @@ static int __init exynos5440_pinctrl_parse_dt(struct platform_device *pdev, } /* register the pinctrl interface with the pinctrl subsystem */ -static int __init exynos5440_pinctrl_register(struct platform_device *pdev, +static int exynos5440_pinctrl_register(struct platform_device *pdev, struct exynos5440_pinctrl_priv_data *priv) { struct device *dev = &pdev->dev; @@ -798,7 +798,7 @@ static int __init exynos5440_pinctrl_register(struct platform_device *pdev, } /* register the gpiolib interface with the gpiolib subsystem */ -static int __init exynos5440_gpiolib_register(struct platform_device *pdev, +static int exynos5440_gpiolib_register(struct platform_device *pdev, struct exynos5440_pinctrl_priv_data *priv) { struct gpio_chip *gc; @@ -831,7 +831,7 @@ static int __init exynos5440_gpiolib_register(struct platform_device *pdev, } /* unregister the gpiolib interface with the gpiolib subsystem */ -static int __init exynos5440_gpiolib_unregister(struct platform_device *pdev, +static int exynos5440_gpiolib_unregister(struct platform_device *pdev, struct exynos5440_pinctrl_priv_data *priv) { int ret = gpiochip_remove(priv->gc);