Browse Source

gpio: pl061: drop extra check for NULL platform_data

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>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Rob Herring 13 years ago
parent
commit
b2888095fe
1 changed files with 0 additions and 4 deletions
  1. 0 4
      drivers/gpio/gpio-pl061.c

+ 0 - 4
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;
 	int ret, irq, i;
 	static DECLARE_BITMAP(init_irq, NR_IRQS);
 	static DECLARE_BITMAP(init_irq, NR_IRQS);
 
 
-	pdata = dev->dev.platform_data;
-	if (pdata == NULL)
-		return -ENODEV;
-
 	chip = kzalloc(sizeof(*chip), GFP_KERNEL);
 	chip = kzalloc(sizeof(*chip), GFP_KERNEL);
 	if (chip == NULL)
 	if (chip == NULL)
 		return -ENOMEM;
 		return -ENOMEM;