Skip to contentSkip to conversation

gpio: pl061: drop extra check for NULL platform_data

PATCH New Rob Herring 2 participants 2 messages Dec 9, 2011 – Dec 13, 2011 GPIO

lore
Share & tools
lore
#0 lore raw

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.

---
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
index 093c90b..4102f63 100644
@@ -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
Applied
#1 lore raw

PATCH 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_data got added back in inadvertently, so remove it.

Applied, thanks.

g.

Quoted 29 lines

---
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
index 093c90b..4102f63 100644
@@ -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