2013-06-10 08:20:10

by Tushar Behera

[permalink] [raw]
Subject: [PATCH] gpio_msm: Remove __devinit attribute

The definition of __devinit has been removed from the kernel. Remove
this to fix compilation error.

Signed-off-by: Tushar Behera <[email protected]>
---
drivers/gpio/gpio-msm-v1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-msm-v1.c b/drivers/gpio/gpio-msm-v1.c
index c798585a..fb2cc90 100644
--- a/drivers/gpio/gpio-msm-v1.c
+++ b/drivers/gpio/gpio-msm-v1.c
@@ -630,7 +630,7 @@ static struct irq_chip msm_gpio_irq_chip = {
.irq_set_type = msm_gpio_irq_set_type,
};

-static int __devinit gpio_msm_v1_probe(struct platform_device *pdev)
+static int gpio_msm_v1_probe(struct platform_device *pdev)
{
int i, j = 0;
const struct platform_device_id *dev_id = platform_get_device_id(pdev);
--
1.7.9.5


2013-06-17 08:25:31

by Linus Walleij

[permalink] [raw]
Subject: Re: [PATCH] gpio_msm: Remove __devinit attribute

On Mon, Jun 10, 2013 at 10:05 AM, Tushar Behera
<[email protected]> wrote:

> The definition of __devinit has been removed from the kernel. Remove
> this to fix compilation error.
>
> Signed-off-by: Tushar Behera <[email protected]>

I already had a similar patch from Stephen Boyd queued so
dropping this.

Yours,
Linus Walleij