Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2888095 authored by Rob Herring's avatar Rob Herring Committed by Grant Likely
Browse files

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: default avatarRob Herring <rob.herring@calxeda.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent dc47ce90
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;