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

Commit 1effe5bc authored by Samuel Ortiz's avatar Samuel Ortiz Committed by Samuel Ortiz
Browse files

mfd: asic3 children platform data removal



Platform devices should be dynamically allocated, and each supported
device should have its own platform data.
For now we just remove this buggy code.

Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 6f2384c4
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -604,14 +604,6 @@ static int asic3_probe(struct platform_device *pdev)
		goto out_irq;
	}

	if (pdata->children) {
		int i;
		for (i = 0; i < pdata->n_children; i++) {
			pdata->children[i]->dev.parent = &pdev->dev;
			platform_device_register(pdata->children[i]);
		}
	}

	printk(KERN_INFO "ASIC3 Core driver\n");

	return 0;
+0 −3
Original line number Diff line number Diff line
@@ -32,9 +32,6 @@ struct asic3_platform_data {
	unsigned int irq_base;

	unsigned int gpio_base;

	struct platform_device **children;
	unsigned int n_children;
};

#define ASIC3_NUM_GPIO_BANKS	4