* [PATCH] gpio: pl061: drop extra check for NULL platform_data
@ 2011-12-09 22:56 Rob Herring
2011-12-13 18:02 ` Grant Likely
0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring @ 2011-12-09 22:56 UTC (permalink / raw)
To: linux-arm-kernel
From: Rob Herring <rob.herring@calxeda.com>
In adding DT binding support, the check for NULL platform_data got added
back in inadvertently, so remove it.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
---
Linus or Grant,
Can you apply this fix for 3.2-rc.
Thanks,
Rob
drivers/gpio/gpio-pl061.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/drivers/gpio/gpio-pl061.c b/drivers/gpio/gpio-pl061.c
index 093c90b..4102f63 100644
--- a/drivers/gpio/gpio-pl061.c
+++ b/drivers/gpio/gpio-pl061.c
@@ -238,10 +238,6 @@ static int pl061_probe(struct amba_device *dev, const struct amba_id *id)
int ret, irq, i;
static DECLARE_BITMAP(init_irq, NR_IRQS);
- pdata = dev->dev.platform_data;
- if (pdata == NULL)
- return -ENODEV;
-
chip = kzalloc(sizeof(*chip), GFP_KERNEL);
if (chip == NULL)
return -ENOMEM;
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] gpio: pl061: drop extra check for NULL platform_data
2011-12-09 22:56 [PATCH] gpio: pl061: drop extra check for NULL platform_data Rob Herring
@ 2011-12-13 18:02 ` Grant Likely
0 siblings, 0 replies; 2+ messages in thread
From: Grant Likely @ 2011-12-13 18:02 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Dec 09, 2011 at 04:56:08PM -0600, Rob Herring wrote:
> From: Rob Herring <rob.herring@calxeda.com>
>
> In adding DT binding support, the check for NULL platform_data got added
> back in inadvertently, so remove it.
>
> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Applied, thanks.
g.
> ---
> Linus or Grant,
>
> Can you apply this fix for 3.2-rc.
>
> Thanks,
> Rob
>
> drivers/gpio/gpio-pl061.c | 4 ----
> 1 files changed, 0 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpio/gpio-pl061.c b/drivers/gpio/gpio-pl061.c
> index 093c90b..4102f63 100644
> --- a/drivers/gpio/gpio-pl061.c
> +++ b/drivers/gpio/gpio-pl061.c
> @@ -238,10 +238,6 @@ static int pl061_probe(struct amba_device *dev, const struct amba_id *id)
> int ret, irq, i;
> static DECLARE_BITMAP(init_irq, NR_IRQS);
>
> - pdata = dev->dev.platform_data;
> - if (pdata == NULL)
> - return -ENODEV;
> -
> chip = kzalloc(sizeof(*chip), GFP_KERNEL);
> if (chip == NULL)
> return -ENOMEM;
> --
> 1.7.5.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-13 18:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-09 22:56 [PATCH] gpio: pl061: drop extra check for NULL platform_data Rob Herring
2011-12-13 18:02 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).