gpio: pl061: drop extra check for NULL platform_data
PATCH 1/1 gpio: pl061: drop extra check for NULL platform_data
From: Rob Herring <[email protected]>
In adding DT binding support, the check for NULL platform_data got added back in inadvertently, so remove it.
Signed-off-by Rob Herring <[email protected]>
---
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(-)
drivers/gpio/gpio-pl061.c +0 -4
@@ -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 ;
Signature · 1 line
1.7.5.4
Grant Likely
AppliedPATCH 1/1 gpio: pl061: drop extra check for NULL platform_data
Quoted 6 lines · Rob Herring
From: Rob Herring <[email protected]>
In adding DT binding support, the check for NULL
platform_datagot added back in inadvertently, so remove it.Signed-off-by Rob Herring <[email protected]>
Applied, thanks.
g.
Quoted 29 lines
---
Linus or Grant,Can you apply this fix for 3.2-rc.
Thanks,
Robdrivers/gpio/gpio-pl061.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)drivers/gpio/gpio-pl061.c +0
-4@@ -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 ;Signature · 1 line
1.7.5.4