2010-08-31 04:52:56

by Virupax SADASHIVPETIMATH

[permalink] [raw]
Subject: [PATCH] stmpe-gpio: Handle platform data with no gpio base

This patch removes the requirement that gpio base be supplied in
platform data.

Signed-off-by: Virupax Sadashivpetimath <[email protected]>
Acked-by: Linus Walleij <[email protected]>
---
drivers/gpio/stmpe-gpio.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/stmpe-gpio.c b/drivers/gpio/stmpe-gpio.c
index 65b9960..932759d 100644
--- a/drivers/gpio/stmpe-gpio.c
+++ b/drivers/gpio/stmpe-gpio.c
@@ -291,8 +291,6 @@ static int __devinit stmpe_gpio_probe(struct platform_device *pdev)
int irq;

pdata = stmpe->pdata->gpio;
- if (!pdata)
- return -ENODEV;

irq = platform_get_irq(pdev, 0);
if (irq < 0)
--
1.7.1


2010-08-31 09:24:10

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH] stmpe-gpio: Handle platform data with no gpio base

On Tue, Aug 31, 2010 at 10:04:56AM +0530, Virupax Sadashivpetimath wrote:
> This patch removes the requirement that gpio base be supplied in
> platform data.
>
> Signed-off-by: Virupax Sadashivpetimath <[email protected]>
> Acked-by: Linus Walleij <[email protected]>

Acked-by: Wolfram Sang <[email protected]>

> ---
> drivers/gpio/stmpe-gpio.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpio/stmpe-gpio.c b/drivers/gpio/stmpe-gpio.c
> index 65b9960..932759d 100644
> --- a/drivers/gpio/stmpe-gpio.c
> +++ b/drivers/gpio/stmpe-gpio.c
> @@ -291,8 +291,6 @@ static int __devinit stmpe_gpio_probe(struct platform_device *pdev)
> int irq;
>
> pdata = stmpe->pdata->gpio;
> - if (!pdata)
> - return -ENODEV;
>
> irq = platform_get_irq(pdev, 0);
> if (irq < 0)
> --
> 1.7.1
>

--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |


Attachments:
(No filename) (1.00 kB)
signature.asc (198.00 B)
Digital signature
Download all attachments